v26

latestOpenAPI 3.0.2raw.githubusercontent.com2024-10-0834042975.6 KB
Margin

Query Margin Account's Trade List (USER_DATA)

  • If fromId is set, it will get orders >= that fromId. Otherwise most recent trades are returned.

Weight(IP): 10

get/sapi/v1/margin/myTrades

Query parameters

symbolstring required
Example:BNBUSDT

Trading symbol, e.g. BNBUSDT

isIsolated'TRUE' | 'FALSE'
  • TRUE - For isolated margin
  • FALSE - Default, not for isolated margin
startTimeinteger

UTC timestamp in ms

endTimeinteger

UTC timestamp in ms

fromIdinteger

Trade id to fetch from. Default gets most recent trades.

limitinteger
Example:5

Default 500; max 1000.

recvWindowinteger
Example:5000

The value cannot be greater than 60000

timestampinteger required

UTC timestamp in ms

signaturestring required

Signature

Response

List of margin trades

commissionstring required
commissionAssetstring required
idinteger required
isBestMatchboolean required
isBuyerboolean required
isMakerboolean required
orderIdinteger required
pricestring required
qtystring required
symbolstring required
isIsolatedboolean required
timeinteger required

Example response

[
  {
    "commission": "0.00006000",
    "commissionAsset": "BTC",
    "id": 28,
    "orderId": 28,
    "price": "0.02000000",
    "qty": "1.02000000",
    "symbol": "BNBBTC",
    "time": 1507725176595
  }
]