Binance Futures

USD-M perpetual futures market data: funding, premium index, open interest, long/short ratios, candles and depth.

19 endpoints40.7k calls7/19 passing
Get API key

Compressed trades for one contract: fills at the same price, from the same

GET/v1/…binance-futures/agg-trades
failed last check5s cache

Try it

Checking your keys…

Parameters

symbol

string · query · required

Futures contract. Accepts BTCUSDT, BTC/USDT, btc_usdt, or a dated contract such as BTCUSDT_260925.

count

number · query · optional

Rows to return, newest last. Default 500, max 1000.

startTime

string · query · optional

Window start, inclusive. Only the last 2 days exist. ISO timestamp or epoch milliseconds.

endTime

string · query · optional

Window end, inclusive. ISO timestamp or epoch milliseconds.

fromId

string · query · optional

Resume from this aggregate trade id instead of a time window.

Example response

{"project":"finance:binance-futures",  "data": {"count":500,    "items": [      {"side":"sell","time":1787475008113,"price":76494,"amount":0.003,"timeIso":"2026-08-23T08:50:08.113Z","aggTradeId":3422194533,"tradeCount":1,"amountQuote":229.482,"lastTradeId":8005543997,"firstTradeId":8005543997,"isBuyerMaker":true      },      {"side":"sell","time":1787475008380,"price":76494,"amount":0.1,"timeIso":"2026-08-23T08:50:08.380Z","aggTradeId":3422194534,"tradeCount":1,"amountQuote":7649.4,"lastTradeId":8005543998,"firstTradeId":8005543998,"isBuyerMaker":true      },      {"side":"buy","time":1787475008621,"price":76494.1,"amount":0.128,"timeIso":"2026-08-23T08:50:08.621Z","aggTradeId":3422194535,"tradeCount":1,"amountQuote":9791.2448,"lastTradeId":8005543999,"firstTradeId":8005543999,"isBuyerMaker":false      }    ],"symbol":"BTCUSDT","exchange":"binance"  },"timestamp":"2026-08-20T16:59:35Z"}

Errors

  • 401Missing or invalid x-api-key
  • 404Not found or private
  • 429Rate limit or monthly quota reached

Code

const data = await client.run(  "finance:binance-futures",  "agg-trades",  { symbol: "BTCUSDT", count: 500, startTime: "2026-08-20T00:00:00Z", endTime: "2026-08-20T01:00:00Z", fromId: "3413731512" });