Compressed/Aggregate Trades List
Get compressed, aggregate trades. Trades that fill at the time, from the same order, with the same price will have the quantity aggregated.
-
If fromId, startTime, and endTime are not sent, the most recent aggregate trades will be returned.
-
Note that if a trade has the following values, this was a duplicate aggregate trade and marked as invalid:
p = '0' // price
q = '0' // qty
f = -1 // first_trade_id
l = -1 // last_trade_id
Weight(IP): 2
Query parameters
Trading symbol, e.g. BNBUSDT
Trade id to fetch from. Default gets most recent trades.
UTC timestamp in ms
UTC timestamp in ms
Default 500; max 1000.
Response
Trade list
Example response
[
{
"a": 26129,
"p": "0.01633102",
"q": "4.70443515",
"f": 27781,
"l": 27781
}
]Changes
Changed in 1 of the 26 revisions of this API.410
- ▲
for the
queryrequest parameterendTime, the type/format was changed frominteger/tointeger/int64request-parameter-type-changed
- ▲
for the
queryrequest parameterfromId, the type/format was changed frominteger/tointeger/int64request-parameter-type-changed
- ▲
for the
queryrequest parameterlimit, the type/format was changed frominteger/tointeger/int32request-parameter-type-changed
- ▲
for the
queryrequest parameterstartTime, the type/format was changed frominteger/tointeger/int64request-parameter-type-changed
- ○
the response property
codebecame required for the status400response-property-became-required
- ○
the response property
items/Mbecame required for the status200response-property-became-required
- ○
the response property
items/Tbecame required for the status200response-property-became-required
- ○
the response property
items/abecame required for the status200response-property-became-required
- ○
the response property
items/fbecame required for the status200response-property-became-required
- ○
the response property
items/lbecame required for the status200response-property-became-required
- ○
the response property
items/mbecame required for the status200response-property-became-required
- ○
the response property
items/pbecame required for the status200response-property-became-required
- ○
the response property
items/qbecame required for the status200response-property-became-required
- ○
the response property
msgbecame required for the status400response-property-became-required
- ▲