Skip to content

Get All Trading Records

Description

Get all trading records

HTTP Request

  • GET /open/api/all_trade

Request Parameters

ParameterTypeRequiredDescription
api_keyStringYesthe key is in the user api management
timeLongYesit is the current timestamp
signStringYesthe string is generated according to signature rule
pageSizeIntegerNothe size of page, default value is ten
pageIntegerNothe number of page, default value is one
symbolStringYescoin pair, example: btcusdt
idLongNoid index
startDateStringNostart date, the format is "yyyy-MM-dd mm:hh:ss"
endDateStringNoend date, the format is "yyyy-MM-dd mm:hh:ss"
sortIntegerNo1 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

ParameterTypeDescription
countIntegernumber of result list
>sideStringtrade side: BUY, SELL
>ask_user_idIntegerseller user id
>bid_user_idIntegerbuyer user id
>feeStringfee
>deal_priceStringdeal amount
>bid_idLongbuyer order id
>ask_idLongseller order id
>volumeStringdeal volume
>feeCoinStringfee coin
>priceStringdeal price
>ctimeLongcreate time
>idLongtrading 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

CodeDescription
0success
1system error
100004illegal parameter
100005illegal sign
100007illegal ip address
100008the request time is expired