API Reference

Get Sub Account 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)
subAccountIdSTRINGYSub Account ID
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
sideSTRINGLIMITDirection of the order. Possible values include BUY_OPEN, SELL_OPEN, BUY_CLOSE, and SELL_CLOSE.
typeSTRINGBUY_OPENThe order type, possible types: LIMIT, MARKET
realizedPnlFLOAT0Profit and loss
isMakerBOOLEANtrueWhether the trade is a maker
Query Params
string
required
Defaults to ETHUSDT-PERPETUAL

Name of the contract

int32

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

string
required
Defaults to 1673782460192774144

Sub Account ID

int64

TradeId to retrieve from

int64

TradeId to retrieve to

int64

Start Timestamp

int64

End Timestamp

int64

recv Window

int64
required
Defaults to 1716701347154

Timestamp

string
required
Defaults to 709182e0b5a3bb40a412d86cc8c8f88eb1af01cd414d857a7e6a0d6d4ec1d468

Signature

Responses

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