Skip to main content
Version: V3

Get Trade History (USER_DATA)

  • GET /api/v3/myTrades

Weight(IP): 5

Request parameters

ParameterTypeRequired?Description
symbolStringYesTrading pair.
orderIdLongNoFilter by order ID.
startTimeLongNoStart time (ms).
endTimeLongNoEnd time (ms). Must be ≥ startTime.
limitIntegerNoPage size (default 100, maximum 200).
  • If startTime and endTime are not provided, the default query range is the last 7 days.
  • The interval between startTime and endTime cannot exceed 90 days.
  • Only data from the last 1 year can be queried.

Request example

curl "https://api-spot.weex.com/api/v3/myTrades?symbol=BTCUSDT&limit=50" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*******" \
-H "ACCESS-PASSPHRASE:*****" \
-H "ACCESS-TIMESTAMP:1659076670000" \

Response parameters

FieldTypeDescription
symbolStringTrading pair.
idLongTrade identifier.
orderIdLongRelated order ID.
priceStringTrade price.
qtyStringFilled quantity (base asset).
quoteQtyStringFilled amount (quote asset).
commissionStringCommission amount.
timeLongTrade time (ms).
isBuyerBooleanWhether the user was the buyer.

Response example

[
{
"symbol": "BTCUSDT",
"id": 801234567890123456,
"orderId": 702345678901234567,
"price": "68950.00",
"qty": "0.01",
"quoteQty": "689.50",
"commission": "0.138",
"time": 1764506001556,
"isBuyer": true
}
]