get https://api-pro.sim.hashkeydev.com/api/v1/account/tradesByClOrderId
Query account history and transaction records by clientOrderId. Support 30-day data.
- This Endpoint is of lower weight comparing with Get Account Trade List
- If there is only fromId, It will return trades with IDs bigger than fromId, sorted in descending order.
- If there is only toId. It will return trades with IDs less than toId, sorted in descending order
- If both fromId and toId are provided. It will return trades between fromId and toId, sorted in descending order
- If neither fromId or toId is provided, it will return the latest trade records, sorted in descending order of the Id
Weight: 1
Request Parameters
PARAMETER | TYPE | Req'd | DESCRIPTION |
---|---|---|---|
clientOrderId | STRING | Y | Client Order ID, do not support bulk query. |
fromId | LONG | Starting ID | |
toId | LONG | End ID | |
limit | INT | Limit of record | |
timestamp | LONG | Y | Timestamp |
Response Content
PARAMETER | TYPE | Example values | DESCRIPTION |
---|---|---|---|
- | Object Array | Check transaction results | |
id | INTEGER | 1470930841345474561 | Unique transaction ID (This value is the trade_id in v0 API) |
clientOrderId | INTEGER | 999999999800021 | An ID defined by the client for the order, it will be automatically generated if it is not sent in the request |
ticketId | INTEGER | 1478144171272585249 | Execution ID, the execution ID is the same for the direction of a single trade. |
symbol | STRING | BTCUSD | Trading pair |
symbolName | STRING | BTCUSD | Trading pair name |
orderId | INTEGER | 1470930841211329280 | Order ID |
matchOrderId | INTEGER | 1470930605684362240 | //Ignore |
price | STRING (decimal) | 29851.03 | Price |
qty | STRING (decimal) | 0.0005 | Quantity |
time | STRING (decimal) | 1690084620567 | Millisecond Timestamp |
isBuyer | BOOLEAN | false | Whether the trade is a buyer |
isMaker | BOOLEAN | false | Whether the trade is a maker |
fee | Object | Fee information | |
fee.feeCoin | STRING | USD | Currency for fees |
fee.feeCoinId | STRING | USD | Currency ID for fees |
fee.feeCoinName | STRING | USD | Fee currency name |
fee.fee | STRING (decimal) | 0.02985103 | Transaction fee amount |
makerRebate | INTEGER | 0 | Return |
accountId | LONG | 1545583349011201280 | Account ID |