November 07, 2025

Does One Credit Always Equal One API Call, Regardless of Query Complexity?

featured image

Short answer:

No, one credit doesn’t always equal one API call.

For CoinAPI Market Data REST, one REST Credit can equal one API call when the endpoint does not use a limit parameter or does not support one.

When limit is used, credit consumption depends on the number of data points returned, not simply the number of HTTP requests.

Endpoints such as historical trades, quotes, and OHLCV can use a limit parameter.

When limit is used, the general rule is:

Every 100 returned data points = 1 REST Credit, rounded up.

Or, as a formula:

REST Credits = ceil(returned_data_points / 100)

If limit is not used or is unavailable for the endpoint, the API call generally counts as 1 REST Credit.

Endpoint-specific behavior may apply, so always check the documentation for the endpoint you are using.

Data points returnedREST Credits
501
1001
1012
5005
100010

Notice that the calculation is based on returned data points. Setting limit=1000 does not necessarily mean you will consume 10 REST Credits if the endpoint returns fewer records.

Let’s say you want 1-second OHLCV data for one symbol over a full day.

A day contains:

24 × 60 × 60 = 86,400 seconds

A full day of 1-second OHLCV can therefore return up to 86,400 bars, depending on data availability and market activity.

At 100 returned data points per REST Credit:

86,400 ÷ 100 = 864 REST Credits

Using the first PAYG tier of $5.26 per 1,000 REST Credits, the estimated cost would be:

864 ÷ 1,000 × $5.26 ≈ $4.54

So, in this example, the query could cost approximately $4.54.

Actual cost depends on the number of records returned, your total daily REST Credit usage, and your plan.

REST Credits use tiered pricing, with the unit price decreasing as daily usage increases.

That means you shouldn’t calculate every REST Credit using the first-tier price when estimating a larger workload.

For example, under PAYG pricing, if you use 2,500 REST Credits in a day:

  • First 1,000 credits at $5.26/1,000 = $5.26
  • Next 1,500 credits at $2.63/1,000 = $3.95
  • Estimated total = $9.21

Always check the current Market Data API pricing before estimating production costs, as pricing depends on your plan, included quotas, usage category, and metered usage.

New CoinAPI users can also start with $25 in free credits to test supported REST and WebSocket workflows before scaling.

Not every CoinAPI access method uses REST Credits.

Each interface uses a billing metric that reflects how the data is delivered.

Access methodBilling metricTypical use
RESTREST CreditsTargeted current and historical queries
WebSocket Tier 1Data transferredTrades, quotes, order books
WebSocket Tier 2Data transferredMetadata, OHLCV, exchange rates
FIXConnection-HoursInstitutional market data connectivity

For REST, usage is primarily tied to requests and returned data points.

For WebSocket, usage is measured through data transferred. Tier 1 covers data such as trades, quotes, and order books, while Tier 2 covers data such as metadata, OHLCV, and exchange rates.

FIX uses a Connection-Hour model rather than REST Credits.

Flat credit-per-call pricing would not accurately reflect the difference between a small metadata request and a large historical data request.

In practice, REST Credit consumption can vary based on:

  • Endpoint
  • Number of returned records
  • limit parameter
  • Requested symbol and time range
  • Endpoint-specific billing behavior

A lightweight request may consume only one REST Credit, while a large historical REST query can consume substantially more.

For multi-year tick, quote, or order book history, however, REST usually isn’t the right access method.

For large historical backfills, ML datasets, or multi-year tick and order book downloads, use CoinAPI Flat Files instead of paginating through REST.

Flat Files are designed for bulk historical datasets and are billed and accessed differently from Market Data REST Credits.

This makes the product split relatively simple:

REST → targeted current and historical queries
WebSocket → continuous real-time streaming
FIX → institutional market data connectivity
Flat Files → bulk historical datasets

Request the amount of data your application actually needs. Larger responses can consume more REST Credits.

When downloading historical data, keep track of completed time ranges so you don't repeatedly retrieve the same records.

Metadata such as symbols, assets, and exchanges often does not need to be downloaded before every market-data request.

Cache it and refresh it only when necessary.

If your application requires a continuous market feed, use WebSocket instead of repeatedly polling REST.

WebSocket has its own data-transfer billing, so subscribe only to the symbols and data types you actually need.

If you need millions of historical trades, quotes, or order book records, don't optimize REST indefinitely.

Flat Files are designed specifically for large-scale historical retrieval.

During development, log the x-credits-used response header when available. This helps you understand the actual consumption of different requests rather than estimating from request counts alone.

You can also use the API BRICKS Console to monitor usage, quotas, billing, and API keys.

You can schedule large backfills around your infrastructure and processing requirements, but remember that running a REST request at a different time of day does not inherently reduce its REST Credit consumption.

These practices can materially reduce unnecessary usage, particularly in polling-heavy applications or workflows that repeatedly request the same historical data.

Credits are a unit of API usage, but they don't always map 1:1 with API calls.

For Market Data REST, when limit is used, every 100 returned data points generally counts as 1 REST Credit. Without limit, an API call generally counts as one REST Credit unless endpoint-specific rules apply.

WebSocket and FIX use different billing metrics, while Flat Files are designed and priced separately for bulk historical data.

The best way to control costs is to choose the right access method for the workload, monitor actual consumption, and check the current pricing rules before scaling a production pipeline.

Recent Articles

Crypto API made simple: Try now or speak to our sales team