Track Daily OHLCV Data in Google Sheets (No Code)
Overview
In this tutorial, you’ll:
- Get your CoinAPI key
- Use a single Google Sheets formula to import OHLCV data
- Format and visualize that data with built-in charts
Skill level: Beginner
Estimated time: 10–15 minutes
Tools needed: Google Sheets, web browser, CoinAPI account
Prerequisite: Get Your API Key
Before starting this tutorial, make sure you have a valid API key.
👉 Getting Started: How to Create Your API Key
Once you have your API key ready, continue to Step 1 below.
Step 1: Open a New Google Sheet
- Go to docs.google.com.
- Create a new blank spreadsheet.
- Name it something like: “Daily OHLCV Tracker (CoinAPI)”
Step 2: Understand the OHLCV Endpoint
CoinAPI’s OHLCV endpoint returns historical candlestick data between two dates.
A typical request URL looks like this:
Parameter Guide
| Parameter | Description |
| BINANCE_SPOT_BTC_USDT | Exchange + symbol type + pair (you can change to BINANCE_SPOT_ETH_USDT, etc.) |
| period_id=1DAY | Candle interval – 1 day per row |
| time_start | Start time (UTC) of data range |
| time_end | End time (UTC) of data range |
| limit | Max number of rows to return (optional safety limit) |
| apikey | Your CoinAPI key |
| output_format=csv | Returns spreadsheet-ready CSV |
🧮 Step 3: Use IMPORTDATA() in Google Sheets
In cell A1, enter:
Replace YOUR_API_KEY with your actual key, then press Enter.
Once this is fully loaded, you will see the data reflected in your sheet:
About the “External Access” Warning
When you run the formula, a yellow banner may appear:
Warning: Some formulas are trying to send and receive data from external parties.
[Allow access]
Why: Sheets is confirming you’re allowing external data from CoinAPI.
Fix: Click Allow access once, your data will load.
Step 4: Convert and Format the CSV Data
After you click Allow access, you’ll notice that all your imported data appears inside Column A only, each row contains comma-separated values. This happens because Google Sheets doesn’t automatically split external CSV data into separate columns.
To fix this
- Select Column A (click the “A” header).
- Go to Data → Split text to columns.
- When the separator prompt appears at the bottom, choose Semicolon (;).
- The data will instantly expand into multiple columns, one per field.
Step 5: Create a Candlestick Chart
- Highlight the columns for time_period_start, price_open, price_high, price_low, and price_close.
- Click Insert → Chart.
- In the Chart Editor:
- Change Chart type → Candlestick chart.
- Set X-axis = Date (time_period_start).
- Adjust colors or line thickness as desired.
Step 6: Troubleshooting
| Issue | Likely Cause | Fix |
| #REF! / #ERROR! | Invalid API key | Verify your key from CoinAPI Dashboard |
| Blank data | Wrong symbol or invalid time range | Check pair and ensure time_start/time_end exist on that exchange |
| Warning banner | Sheets permissions | Click Allow access once |
| Rate limit error | Too many refreshes | Reduce update frequency or upgrade plan |
You’ve Built It!
You now have a fully working, no-code Daily OHLCV Tracker pulling live CoinAPI data between your defined start and end dates!