For the complete documentation index, see llms.txt. This page is also available as Markdown.

Coin API

Coin API is a financial data provider that delivers historical and real-time cryptocurrency market data — including price candles, individual trades, and bid/ask quotes — across thousands of trading pairs and exchanges. Connect it to Coupler.io to pull structured crypto market data directly into your analytics tools or AI assistants without writing a single line of code.

Why connect Coin API to Coupler.io?

  • Centralize crypto market data — pull OHLCV candles, raw trades, and quote data into one place for unified analysis

  • Automate historical pulls — schedule recurring data flows to keep your dashboards and models up to date

  • Combine multiple symbols or entities — use Append or Join transformations to analyze several trading pairs side by side

  • Send data to AI tools — pipe market data directly into ChatGPT, Claude, Gemini, or Perplexity for pattern analysis and summaries

Prerequisites

  • A Coin API account with an active API key (get one at coinapi.io)

  • The Symbol ID for the trading pair you want to pull data for (e.g., BITSTAMP_SPOT_BTC_USD) — find the full list in the Coin API docs

  • A Coupler.io account

Quick start

How to connect

1

Create a new data flow in Coupler.io. Go to your Coupler.io dashboard and click Add data flow. Search for Coin API and select it as your source.

2

Enter your Coin API key. Paste your API key into the authentication field. You can find or generate your key in the Coin API dashboard under your account settings.

3

Select an entity. Choose one of the three available entities: OHLCV Historical Data, Trades Historical Data, or Quotes Historical Data.

4

Configure your parameters. Enter the Symbol ID for your trading pair, set a time interval (for OHLCV), and use the date pickers to define your start and end dates. Set a record limit if needed (default is 100, max is 100,000).

5

Choose a destination. Select where you want your data to go — Google Sheets, Excel, BigQuery, Looker Studio, or an AI destination like ChatGPT, Claude, or Gemini.

6

Run the data flow. Click Run to execute a manual run and confirm that data loads correctly before setting up a schedule.

Available entities

Entity
Description

OHLCV Historical Data

Open, High, Low, Close, and Volume candles for a trading pair over a chosen time interval

Trades Historical Data

Individual trade transactions with price, volume, and timestamp

Quotes Historical Data

Historical bid and ask price quotes with timestamps

Coin API data overview

Coin API gives you access to three types of historical cryptocurrency market data. Each entity focuses on a different level of market detail — from aggregated candles to tick-level trades and quotes.

Entities

Entity
Best for

OHLCV Historical Data

Price trend analysis, charting, backtesting strategies

Trades Historical Data

Execution analysis, volume profiling, microstructure research

Quotes Historical Data

Spread analysis, liquidity research, bid/ask dynamics

OHLCV Historical Data

Metrics

Field
Description

price_open

Opening price at the start of the period

price_high

Highest price during the period

price_low

Lowest price during the period

price_close

Closing price at the end of the period

volume_traded

Total volume of the base asset traded during the period

trades_count

Number of individual trades that occurred during the period

Dimensions

Field
Description

symbol_id

The trading pair identifier (e.g., BITSTAMP_SPOT_BTC_USD)

time_period_start

Start timestamp of the candle period

time_period_end

End timestamp of the candle period

time_open

Exact timestamp of the first trade in the period

time_close

Exact timestamp of the last trade in the period

Trades Historical Data

Metrics

Field
Description

price

Execution price of the trade

size

Volume of the base asset traded

Dimensions

Field
Description

symbol_id

The trading pair identifier

time_exchange

Timestamp reported by the exchange

time_coinapi

Timestamp recorded by Coin API

uuid

Unique identifier for the trade

taker_side

Side of the taker (buy or sell, where available)

Quotes Historical Data

Metrics

Field
Description

ask_price

Best ask (sell) price at the time of the quote

ask_size

Volume available at the ask price

bid_price

Best bid (buy) price at the time of the quote

bid_size

Volume available at the bid price

Dimensions

Field
Description

symbol_id

The trading pair identifier

time_exchange

Timestamp reported by the exchange

time_coinapi

Timestamp recorded by Coin API

Common metric combinations

  • OHLCV + volume_traded + trades_count — identify high-activity periods where price moved on large volume

  • Quotes: ask_price - bid_price — calculate spread over time to measure market liquidity

  • Trades: price + size — compute volume-weighted average price (VWAP) across a session

  • OHLCV across multiple symbols — use the Append transformation to combine candle data from different trading pairs for cross-asset comparison

Use cases by role

  • Pull OHLCV data for multiple symbols and use Append to build a unified price history table for backtesting

  • Calculate rolling volatility and Sharpe ratios directly in BigQuery or a connected spreadsheet

  • Use trades data to analyze execution slippage and fill quality

  • Track portfolio asset prices over custom date ranges and export to Excel or Google Sheets for reporting

  • Monitor bid/ask spreads from quotes data to assess liquidity risk for crypto holdings

  • Schedule daily OHLCV pulls to maintain an up-to-date price ledger

  • Pipe OHLCV or trades data into ChatGPT, Claude, or Gemini to detect patterns and generate plain-language market summaries

  • Use Perplexity or OpenClaw to ask questions directly over your historical trade data

  • Combine multiple entities with Join to enrich trade records with contemporaneous quote data

Platform-specific notes

  • Symbol IDs are exchange-specific — BITSTAMP_SPOT_BTC_USD and COINBASE_SPOT_BTC_USD are different symbols even for the same asset pair

  • The time interval (period) parameter only applies to OHLCV data — trades and quotes return tick-level records

  • Leaving the end date empty will pull data up to the current time, which is useful for scheduled incremental flows

  • Very short time intervals (e.g., 1-second candles) over long date ranges can produce millions of rows — use the record limit parameter to control output size

  • Coin API's free tier has rate limits and a cap on historical data depth; paid plans unlock full historical coverage

Coin API common issues

Connection issues

My API key is rejected or I see an authentication error

Double-check that you copied the full API key from your Coin API dashboard with no leading or trailing spaces. Free-tier keys are valid but have usage restrictions — if your key has expired or exceeded its quota, generate a new one from your account settings.

The data flow fails immediately after setup

This usually means the Symbol ID is invalid or formatted incorrectly. Symbol IDs are case-sensitive and exchange-specific (e.g., BITSTAMP_SPOT_BTC_USD). Check the Coin API symbol list to confirm the exact ID for your trading pair.

Missing data

My data flow returns zero rows

Check three things: (1) The Symbol ID exists and has data for your selected date range. (2) Your start and end dates are set correctly using the date pickers — a reversed date range will return nothing. (3) Your record limit isn't set to 0. The default is 100, so if you've accidentally entered 0, no records will be returned.

Data stops before my specified end date

You've likely hit the record limit cap. The maximum is 100,000 records per request. If your combination of symbol, interval, and date range produces more records than the limit allows, the pull will stop early. Narrow your date range or use a larger time interval (e.g., switch from 1-minute to 1-hour candles) to reduce the row count.

Some time periods have gaps in OHLCV data

Gaps usually reflect periods of no trading activity on that specific exchange for that symbol. This is expected behavior — Coin API only records candles where trades actually occurred. If you need a gap-filled series, you'll need to handle that downstream in your destination (e.g., in BigQuery or a spreadsheet formula).

Permission errors

I get a 403 error when pulling historical data

Free-tier Coin API accounts have restricted access to historical data — typically limited to the past 30 days. A 403 on historical requests usually means your plan doesn't cover that date range. Upgrade your Coin API subscription or adjust your start date to fall within your plan's allowed window.

Data discrepancies

Prices don't match what I see on a trading exchange's website

Coin API aggregates data from specific exchange feeds. Make sure your Symbol ID matches the exact exchange you want (e.g., BINANCE_SPOT_BTC_USDT vs. COINBASE_SPOT_BTC_USD). Price differences between exchanges are normal due to arbitrage gaps and liquidity differences.

Rate limits

My data flow is throttled or returns rate limit errors

Coin API enforces rate limits based on your subscription tier. If you're running multiple data flows against the same API key simultaneously, requests can stack up and trigger throttling. Stagger your data flow schedules or reduce the number of concurrent flows. If you consistently hit limits, consider upgrading your Coin API plan.

Coin API FAQ

What is a Symbol ID and how do I find the right one?

A Symbol ID uniquely identifies a trading pair on a specific exchange. The format is typically EXCHANGE_TYPE_BASEASSET_QUOTEASSET — for example, KRAKEN_SPOT_ETH_USD means ETH/USD spot on Kraken. You can browse the full list of valid Symbol IDs in the Coin API documentation. Always copy the exact ID — they're case-sensitive.

Can I pull data for multiple trading pairs in one data flow?

Each data flow is configured for a single Symbol ID. To analyze multiple pairs together, create a separate data flow for each symbol and then use the Append transformation in Coupler.io to merge them into one unified dataset before loading to your destination.

What time intervals are available for OHLCV data?

Coin API supports a wide range of periods — from 1 second up to 1 year. Common options include 1SEC, 1MIN, 5MIN, 15MIN, 1HRS, 1DAY, and 1MTH. The full list is available in the Coin API periods documentation. Note that the period parameter only applies to the OHLCV entity — trades and quotes are always tick-level.

How many records can I pull per request?

The default record limit is 100 and the maximum is 100,000 per request. If your date range and interval combination produces more rows than your limit allows, the data will be truncated at the limit. Adjust your date range, use a larger interval, or split the pull across multiple flows to work around this.

Does a free Coin API account give me access to full historical data?

No. Free-tier accounts typically have restricted access to historical data depth — often limited to the past 30 days. Requests for older data will return a 403 error. You'll need a paid Coin API plan to access extended historical coverage.

Can I send Coin API data to an AI tool like ChatGPT or Claude?

Yes. Coupler.io supports AI destinations including ChatGPT, Claude, Gemini, Perplexity, Cursor, and OpenClaw. You can pipe OHLCV or trades data directly into these tools to ask questions, generate summaries, or identify patterns in your market data.

What's the difference between time_exchange and time_coinapi in trades and quotes data?

time_exchange is the timestamp that the exchange itself reported for the event, while time_coinapi is when Coin API received and recorded it. For most analysis, time_exchange is the more accurate reference for when a trade or quote actually occurred. Differences between the two reflect network and processing latency.

For details on what fields are returned by each entity, see the Data Overview. For help with errors or missing data, check Common Issues.

Last updated

Was this helpful?