private/get-trades
POSTGets all executed trades for a particular instrument./private/get-trades
Users should use user.trade to keep track of real-time trades, and private/get-trades should primarily be used for recovery; typically when the websocket is disconnected.
Request
Body
required
Request id (echoed in response)
Must be "private/get-trades"
Your API key (only required for private REST)
HMAC-SHA256 signature in hex (only required for private REST)
Current timestamp in milliseconds, e.g. "1771761038000".
params objectrequired
E.g. BTCUSD-PERP. Omit for 'all'.
Start time in Unix time format (inclusive), ms or ns. Default: end_time - 1 day. Nanosecond recommended for accurate pagination.
End time in Unix time format (exclusive), ms or ns. Default: current system timestamp. Nanosecond recommended for accurate pagination.
Maximum number of trades to retrieve before end_time. Default: 100. Max: 100.
Optional filter for trades of a particular isolated position. Omit for 'all'.
Schema
- Array [
- ]
Echoed request id
Method invoked
0 = success; non-zero indicates error (reason code).
result object
data object[]
Account ID.
Event date.
Journal type would be TRADING.
Trade quantity.
Trade price.
Net trade fees (after fee credits applied, if any). The negative sign means a deduction on balance.
Fee credits used to offset the trade fees. The negative sign means fee credits were consumed.
Order ID.
Trade ID.
Trade match ID.
Client Order ID.
Possible values: [MAKER, TAKER]
Maker or taker side of the trade
Possible values: [BUY, SELL]
BUY or SELL
E.g. BTCUSD-PERP.
E.g. USD.
Create timestamp in milliseconds.
Create timestamp in nanoseconds.
Optional. Number of orders matched; Maker's order always 1; Taker's is the number of orders matched.
Optional. Only for Maker's order; which order entry of the price level was matched; 0-based.
Isolation ID of the order if under isolated position.
Possible values: [ISOLATED_MARGIN]
Isolation type
Trade transaction time in nanoseconds.
Present when code !== 0.
Present when code !== 0.