Search for swaps

This endpoint allows you to search for finished swaps by date range, swap trade ID, or user ID, individually or in combination, with the search period limited to a maximum of 31 days.

SecuritybearerAuth
Request
query Parameters
date_start
string <date>

Search swap trades by date_start.

Example: date_start=2023-06-28
date_end
string <date>

Search swap trades by date_end.

Example: date_end=2023-06-28
swap_trade_id
string <uuid>

Search swap trades by swap_trade_id.

Example: swap_trade_id=d969468d-2be6-4522-977e-ea4d92c45e86
user_id
string <uuid>

Search swap trades by user_id.

Example: user_id=1edfadad-9ab8-6a30-9760-0242ac120003
page_size
integer [ 1 .. 100 ]

Number of elements to be displayed on a page

Example: page_size=10
page
integer >= 1

Display page number

Example: page=1
Responses
200

List swap trades that match the search query parameters

401

Error

405

Not Allowed

422

Error

429

Too Many Requests

500

Internal Error

503

Maintenance or Service unavailable

get/v1/swaps
Request samples
Response samples
application/json
{
  • "data": [
    ],
  • "meta": {
    },
  • "links": {
    }
}