跳到主要内容

Query Margin Account's Trade List (USER_DATA)

API Description

Query Margin Account's Trade List

HTTP Request

GET /sapi/v1/margin/myTrades

Request Weight

10(IP)

Request Parameters

NameTypeMandatoryDescription
symbolSTRINGYES
isIsolatedSTRINGNOfor isolated margin or not, "TRUE", "FALSE",default "FALSE"
orderIdLONGNO
startTimeLONGNO
endTimeLONGNO
fromIdLONGNOTradeId to fetch from. Default gets most recent trades.
limitINTNODefault 500; max 1000.
recvWindowLONGNOThe value cannot be greater than 60000
timestampLONGYES
  • If fromId is set, it will get trades >= that fromId. Otherwise the trades within 24 hours are returned.
  • Less than 24 hours between startTime and endTime.

Response Example

[
{
"commission": "0.00006000",
"commissionAsset": "BTC",
"id": 34,
"isBestMatch": true,
"isBuyer": false,
"isMaker": false,
"orderId": 39324,
"price": "0.02000000",
"qty": "3.00000000",
"symbol": "BNBBTC",
"isIsolated": false,
"time": 1561973357171
}
]