Trades
Trades
Get Trade List
URL
https://big.one/api/contract/v2/trades
HTTP Request Method
GET
Request Parameters
Parameters | Required | Type | Note |
---|---|---|---|
symbol | string | Contract types, includes BTCUSD , BTCUSDT , ETHUSDT , EOSUSDT | |
id | string | Order id of previous response for pagination. | |
limit | number | Response size limit. | |
side | string | BUY , SELL , FUNDING (triggered every 8 hours), ADL_BUY or ADL_SELL | |
order-id | string | Order id |
Request Example URL
https://big.one/api/contract/v2/trades?limit=30&side=SELL
Response Example
[
{
"fee": 0.00006200177148,
"symbol": "BTCUSD",
"feeRate": 0.0007,
"size": 1000,
"ts": 1562244089804,
"notional": 0.08857395925,
"orderId": "5aef4041-ee43-4a60-0005-705a0f1edcb4",
"id": "5aef4041-f300-0000-0001-00000000001b",
"side": "SELL",
"order": {
"id": "5aef4041-ee43-4a60-0005-705a0f1edcb4",
"type": "LIMIT",
"size": 1000,
"price": 11290
},
"price": 11290
}
]
Get Count of Trades
URL
https://big.one/api/contract/v2/trades/count
HTTP Request Method
GET
Request Parameters
Parameters | Required | Type | Note |
---|---|---|---|
symbol | string | Contract types, includes BTCUSD , BTCUSDT , ETHUSDT , EOSUSDT | |
id | string | Order id of previous response for pagination. | |
limit | number | Response size limit. | |
side | string | BUY , SELL , FUNDING (triggered every 8 hours), ADL_BUY or ADL_SELL | |
order-id | string | Order id |
Request Example URL
https://big.one/api/contract/v2/trades/count?symbol=BTCUSD&limit=30&side=BUY
Response Example
{
"count": 3
}