How do I calculate the number of requests I’ll be making for a specific query?
CoinAPI uses a credit-based system for REST API requests. The number of request credits consumed depends on how many data items you retrieve in a single call.
How it works:
- If you do not use the
limit
parameter, the default islimit=100
, which counts as 1 request - If you do use the
limit
parameter, every 100 data items returned counts as 1 request
Example:
GET /v1/ohlcv/BINANCE_SPOT_BTC_USDT/history?limit=1500
This call returns 1,500 items, which counts as:
1500 ÷ 100 = 15 requests
Additional tips:
limit
minimum: 1limit
maximum: 100,000
Was this section helpful?