CM Account Trade List(USER_DATA)
API Description
Get trades for a specific account and CM symbol.
HTTP Request
GET /papi/v1/cm/userTrades
Request Weight
20 with symbol, 40 with pair
Request Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| symbol | STRING | NO | |
| pair | STRING | NO | |
| startTime | LONG | NO | |
| endTime | LONG | NO | |
| fromId | LONG | NO | Trade id to fetch from. Default gets most recent trades. |
| limit | INT | NO | Default 50; max 1000. |
| recvWindow | LONG | NO | |
| timestamp | LONG | YES |
- Either
symbolorpairmust be sentsymbolandpaircannot be sent togetherpairandfromIdcannot be sent togetherOrderIdcan only be sent together with symbol- If a
pairis sent, tickers for all symbols of thepairwill be returned- The parameter
fromIdcannot be sent withstartTimeorendTime- If
startTimeandendTimeare both not sent, then the last '24 hours' data will be returned.- The time between
startTimeandendTimecannot be longer than 24 hours.
Response Example
[
{
'symbol': 'BTCUSD_200626',
'id': 6,
'orderId': 28,
'pair': 'BTCUSD',
'side': 'SELL',
'price': '8800',
'qty': '1',
'realizedPnl': '0',
'marginAsset': 'BTC',
'baseQty': '0.01136364',
'commission': '0.00000454',
'commissionAsset': 'BTC',
'time': 1590743483586,
'positionSide': 'BOTH',
'buyer': false,
'maker': false
}
]