Compressed/Aggregate Trades List
#
API DescriptionGet compressed, aggregate trades. Market trades that fill in 100ms with the same price and the same taking side will have the quantity aggregated.
#
HTTP RequestGET /dapi/v1/aggTrades
#
Request Weight20
#
Request ParametersName | Type | Mandatory | Description |
---|---|---|---|
symbol | STRING | YES | |
fromId | LONG | NO | ID to get aggregate trades from INCLUSIVE. |
startTime | LONG | NO | Timestamp in ms to get aggregate trades from INCLUSIVE. |
endTime | LONG | NO | Timestamp in ms to get aggregate trades until INCLUSIVE. |
limit | INT | NO | Default 500; max 1000. |
- If both
startTime
andendTime
are sent, time betweenstartTime
andendTime
must be less than 1 hour.- If
fromId
,startTime
, andendTime
are not sent, the most recent aggregate trades will be returned.- Only market trades will be aggregated and returned, which means the insurance fund trades and ADL trades won't be aggregated.
- Sending both
startTime
/endTime
andfromId
might cause response timeout, please send eitherfromId
orstartTime
/endTime