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

Changes

Changed in 1 of the 26 revisions of this API.616

  • a484ce871a72616See the full diff
    • for the query request parameter endTime, the type/format was changed from integer/ to integer/int64

      request-parameter-type-changed

    • for the query request parameter fromId, the type/format was changed from integer/ to integer/int64

      request-parameter-type-changed

    • for the query request parameter limit, the type/format was changed from integer/ to integer/int32

      request-parameter-type-changed

    • for the query request parameter recvWindow, the type/format was changed from integer/ to integer/int64

      request-parameter-type-changed

    • for the query request parameter startTime, the type/format was changed from integer/ to integer/int64

      request-parameter-type-changed

    • for the query request parameter timestamp, the type/format was changed from integer/ to integer/int64

      request-parameter-type-changed

    • the response property code became required for the status 400

      response-property-became-required

    • the response property code became required for the status 401

      response-property-became-required

    • the response property items/commission became required for the status 200

      response-property-became-required

    • the response property items/commissionAsset became required for the status 200

      response-property-became-required

    • the response property items/id became required for the status 200

      response-property-became-required

    • the response property items/isBestMatch became required for the status 200

      response-property-became-required

    • the response property items/isBuyer became required for the status 200

      response-property-became-required

    • the response property items/isIsolated became required for the status 200

      response-property-became-required

    • the response property items/isMaker became required for the status 200

      response-property-became-required

    • the response property items/orderId became required for the status 200

      response-property-became-required

    • the response property items/price became required for the status 200

      response-property-became-required

    • the response property items/qty became required for the status 200

      response-property-became-required

    • the response property items/symbol became required for the status 200

      response-property-became-required

    • the response property items/time became required for the status 200

      response-property-became-required

    • the response property msg became required for the status 400

      response-property-became-required

    • the response property msg became required for the status 401

      response-property-became-required