Skip to main content
POST
/
api
/
binance
/
trades
/
aggregated
/binance/trades/aggregated
curl --request POST \
  --url https://api.anysite.io/api/binance/trades/aggregated \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "symbol": "<string>",
  "count": 2,
  "timeout": 300,
  "from_id": 1,
  "start_time": 1,
  "end_time": 1
}
'
[
  {
    "agg_id": 123,
    "@type": "BinanceAggTrade",
    "price": 123,
    "quantity": 123,
    "first_trade_id": 123,
    "last_trade_id": 123,
    "traded_at": 123,
    "is_buyer_maker": true,
    "is_best_match": true
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
symbol
string
required

Trading pair symbol, uppercase, no separator

Examples:

"BTCUSDT"

"ETHUSDT"

count
integer
required

Number of aggregate trades to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
from_id
integer | null

Return aggregate trades starting from this aggregate id

Required range: x >= 0
start_time
integer | null

Start of the range, unix milliseconds

Required range: x >= 0
end_time
integer | null

End of the range, unix milliseconds

Required range: x >= 0

Response

Successful Response

agg_id
integer
required
@type
string
default:BinanceAggTrade
price
number | null
quantity
number | null
first_trade_id
integer | null
last_trade_id
integer | null
traded_at
integer | null
is_buyer_maker
boolean | null
is_best_match
boolean | null