Get All Trading Records
Description
Get all trading records
HTTP Request
- GET /open/api/all_trade
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | String | Yes | the key is in the user api management |
| time | Long | Yes | it is the current timestamp |
| sign | String | Yes | the string is generated according to signature rule |
| pageSize | Integer | No | the size of page, default value is ten |
| page | Integer | No | the number of page, default value is one |
| symbol | String | Yes | coin pair, example: btcusdt |
| id | Long | No | id index |
| startDate | String | No | start date, the format is "yyyy-MM-dd mm:hh:ss" |
| endDate | String | No | end date, the format is "yyyy-MM-dd mm:hh:ss" |
| sort | Integer | No | 1 represent descending |
Request Example
http
curl --location 'https://openapi.100ex.com/open/api/all_trade?api_key=*********&time=1736303665297&sign=*********&pageSize=&page=&symbol=btcusdt&startDate=&endDate=&id=&sort='Response Parameters
| Parameter | Type | Description |
|---|---|---|
| count | Integer | number of result list |
| >side | String | trade side: BUY, SELL |
| >ask_user_id | Integer | seller user id |
| >bid_user_id | Integer | buyer user id |
| >fee | String | fee |
| >deal_price | String | deal amount |
| >bid_id | Long | buyer order id |
| >ask_id | Long | seller order id |
| >volume | String | deal volume |
| >feeCoin | String | fee coin |
| >price | String | deal price |
| >ctime | Long | create time |
| >id | Long | trading records id |
Response Example
json
{
"code": "0",
"msg": "suc",
"data": {
"count": 1000,
"resultList": [
{
"side": "BUY",
"ask_user_id": 9503872,
"fee": "0.0000161800",
"deal_price": "519.1920109000000000",
"type": null,
"bid_id": 379970499251273728,
"ask_id": 379970469052285766,
"volume": "0.0080900000",
"feeCoin": "BTC",
"price": "64177.0100000000",
"ctime": 1728880026622,
"id": 4608284,
"bid_user_id": 6836856
}
]
},
"message": null,
"traceId": null
}Status Code
| Code | Description |
|---|---|
| 0 | success |
| 1 | system error |
| 100004 | illegal parameter |
| 100005 | illegal sign |
| 100007 | illegal ip address |
| 100008 | the request time is expired |
