GET /fapi/v1/aggTrades
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/aster/fapi/v1/aggTradesCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeCompressed aggregate Futures trades for a symbol.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
symbol | query | str | required | Futures symbol. example: BTCUSDT |
fromId | query | int | optional | Aggregate trade ID to fetch from. |
startTime | query | int | optional | Start timestamp in ms. |
endTime | query | int | optional | End timestamp in ms. |
limit | query | int | optional | Number of rows (max 1000). example: 5 |
Response
type: array
pagination: none
sample: {
"[0]": "object"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/aster/fapi/v1/aggTrades?symbol=BTCUSDT&limit=5"