GET api/v2/trades

General information about endpoints

InformationDescription

Description

Lists trades with optional filters.

Route

GET api/v2/trades

Permissions

Private

Request Parameters:

ParameterTypeRequiredDescription

market

string

Required

Market identifier

side

string

Optional

Trade direction

asset

string

Optional

Asset identifier

from

string

Optional

Filter by start date

to

string

Optional

Filter by end date

page

integer

Optional

Pagination page

per_page

integer

Optional

Number of items per page

sort

string

Optional

Sort order (asc or desc)

sort_by

string

Optional

Sort by specified field

Response:

{
"order" : created_at desc,
"total_count" : 104,
"per_page" : 2,
"total_pages" : 52,
"page" : 1,
"prev_page" : ,
"next_page" : 2,
"items" : [
{
"created_at" : 20220817T20:28:36Z,
"fee" : 0.00001,
"fee_asset" : btc,
"funds" : 10.0,
"funds_asset" : usdt,
"id" : 482,
"in_asset_id" : btc,
"market" : btcusdt,
"order_id" : 669,
"out_asset_id" : usdt,
"price" : 1000.0,
"side" : buy,
"type" : buy,
"volume" : 0.01,
"volume_asset" : btc
},
{
"created_at" : 20220901T16:40:37Z,
"fee" : 0.000001,
"fee_asset" : btc,
"funds" : 1.0,
"funds_asset" : usdt,
"id" : 2060,
"in_asset_id" : btc,
"market" : btcusdt,
"order_id" : 737,
"out_asset_id" : usdt,
"price" : 1000.0,
"side" : sell,
"type" : sell,
"volume" : 0.001,
"volume_asset" : btc
}
]
}