Trade
API Scopes
Need Permission to view trade information
Trade
Attribute Name | Type | Description |
---|---|---|
id | number | id of trade |
asset_pair_name | string | asset pair name |
price | string | deal price |
amount | string | amount |
taker_side | string | order side, one of "ASK/BID" |
side | string | viewer side, one of "ASK/BID/SELF_TRADING" |
maker_order_id | number | maker order id, null if taker_side is equal to side |
taker_order_id | number | taker order id, null if taker_side is not equal to side |
maker_fee | string | maker fee, null if taker_side is equal to side |
taker_fee | string | taker fee, null if taker_side is not equal to side |
created_at | string | created time |
Trades of user
GET /viewer/trades
Parameters
Name | Type | Require | Description | Example |
---|---|---|---|---|
asset_pair_name | string | true | asset pair name | BTC-USDT |
page_token | string | false | request page after this page token | |
limit | string | false | default 20, max 200 |
Response is a Trade array.
{
"code": 0,
"data": [
{
"id": 10854280,
"asset_pair_name": "XIN-USDT",
"price": "70",
"amount": "1",
"taker_side": "ASK",
"maker_order_id": 58284908,
"taker_order_id": 58284909,
"maker_fee": "0.0008",
"taker_fee": "0.07",
"side": "SELF_TRADING",
"inserted_at": "2019-04-16T12:00:01Z"
},
{
"id": 10854263,
"asset_pair_name": "XIN-USDT",
"price": "75.7",
"amount": "12.743149",
"taker_side": "BID",
"maker_order_id": null,
"taker_order_id": 58284888,
"maker_fee": null,
"taker_fee": "0.0025486298",
"side": "BID",
"inserted_at": "2019-04-15T06:20:57Z"
}
],
"page_token":"dxfv"
}