Get Trade History (USER_DATA)
- GET
/api/v3/myTrades
Weight(IP): 5, Weight(UID): 5
Request parameters
| Parameter | Type | Required? | Description |
|---|---|---|---|
| symbol | String | Yes | Trading pair. |
| orderId | Long | No | Filter by order ID. |
| startTime | Long | No | Start time (ms). |
| endTime | Long | No | End time (ms). Must be ≥ startTime. |
| limit | Integer | No | Page size (default 100). |
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
| Field | Type | Description |
|---|---|---|
| symbol | String | Trading pair. |
| id | Long | Trade identifier. |
| orderId | Long | Related order ID. |
| price | String | Trade price. |
| qty | String | Filled quantity (base asset). |
| quoteQty | String | Filled amount (quote asset). |
| commission | String | Commission amount. |
| time | Long | Trade time (ms). |
| isBuyer | Boolean | Whether 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
}
]