API Reference

Query Futures trades

Weight: 1

Request Parameters


PARAMETERTYPEReq'dExample valuesDESCRIPTION
symbolSTRINGYETHUSDT-PERPETUALName of the contract
limitINTEGER20 (default)The number of trades returned default 20 (max to 1000)
fromIdLONGTradeId to retrieve from
toIdLONGTradeId to retrieve to
startTimeLONGStart Timestamp
endTimeLONGEnd Timestamp
recvWindowLONGrecv Window
timestampLONGY1714311403031Timestamp

Response Content


PARAMETERTYPEExample valuesDESCRIPTION
timeLONG1714359493905Timestamp when the order is created
tradeIdLONG1674563238321331712The ID for the trade
orderIdINTEGER1673994449678549760The ID of the order
symbolSTRINGETHUSDT-PERPETUALName of the contract.
priceFLOAT3250Price of the trade.
quantityFLOAT120Quantity of the trade.
commissionAssetSTRINGUSDTCurrency of commission fee
commissionSTRING0.234Commission fee
makerRebateSTRING0Return
sideSTRINGBUY_OPENDirection of the order. Possible values include BUY_OPEN, SELL_OPEN, BUY_CLOSE, and SELL_CLOSE.
typeSTRINGLIMITThe order type, possible types: LIMIT, MARKET
realizedPnlFLOAT0Profit and loss
isMarkerBOOLEANtrueWhether the trade is a maker
ticketIdSTRING1863037473639448576The Matching ID for the trade. Both maker and taker share the same ticketId for a single trade.
Query Params
string
required
Defaults to ETHUSDT-PERPETUAL

Symbol

int32

The number of trades returned default 20 (max to 1000)

int64

TradeId to fetch from.

int64

TradeId to fetch to.

int64

Start Timestamp

int64

End Timestamp

int64
required
Defaults to 1714524071472

Timestamp

string
required
Defaults to 112543bf6895a903ffd96a832fd6fd0053406ceff7d72770753f00a41ef06977

Signature

Responses

Language
Credentials
Click Try It! to start a request and see the response here! Or choose an example:
application/json