Margin

Query Margin Account's Trade List (USER_DATA)

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

Weight(IP): 10

get/sapi/v1/margin/myTrades

Request

  • Base URL
    https://api.binance.com
  • URL
    https://api.binance.com/sapi/v1/margin/myTrades
  • Auth
    API key in header X-MBX-APIKEY

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
  }
]

Changes

    • breaking

      for the query request parameter endTime, the format changed from no format to int64

    • breaking

      for the query request parameter fromId, the format changed from no format to int64

    • breaking

      for the query request parameter limit, the format changed from no format to int32

    • breaking

      for the query request parameter recvWindow, the format changed from no format to int64

    • breaking

      for the query request parameter startTime, the format changed from no format to int64

    • breaking

      for the query request parameter timestamp, the format changed from no format to int64

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status