Skip to main content
POST
/
trading
/
trades
Get Trades
curl --request POST \
  --url http://localhost:8000/trading/trades \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "limit": 100,
  "start_time": 123,
  "end_time": 123,
  "cursor": "<string>",
  "account_names": [
    "<string>"
  ],
  "connector_names": [
    "<string>"
  ],
  "trading_pairs": [
    "<string>"
  ],
  "trade_types": [
    "<string>"
  ]
}
'
{
  "data": [],
  "pagination": {
    "has_more": true,
    "limit": 100,
    "next_cursor": "2024-01-10T12:00:00",
    "total_count": 500
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Request model for filtering trades

limit
integer
default:100

Number of items per page

Required range: 1 <= x <= 1000
start_time
integer | null

Start time as Unix timestamp in milliseconds

end_time
integer | null

End time as Unix timestamp in milliseconds

cursor
string | null

Cursor for next page

account_names
string[] | null

List of account names to filter by

connector_names
string[] | null

List of connector names to filter by

trading_pairs
string[] | null

List of trading pairs to filter by

trade_types
string[] | null

List of trade types to filter by (BUY/SELL)

Response

Successful Response

Generic paginated response.

data
Data · object[]
required
pagination
Pagination · object
required