Back to Polygon.io in Excel
SheetXAI logo
Polygon.io logo
Polygon.io · Excel Guide

Pull Crypto OHLCV Data and Momentum Signals Into a Excel From Polygon.io

2026-05-14
5 min read

The Scenario

You're a quant researcher and you've just finished a momentum strategy specification — RSI below 40 on an uptrend, confirmed by EMA crossover — that you want to backtest on a 13-coin crypto universe over the last 90 days. You have BTC, ETH, SOL, and 10 others in your Excel workbook. You need daily OHLCV for all 13 coins, plus indicator values, in a structure your backtesting script can read directly.

The bad version:

  • You pull OHLCV from a crypto data provider for BTC, export it, import it into Excel, repeat for ETH, repeat for SOL — 13 times total.
  • Three of the coins have gaps in their OHLCV data because they were listed mid-period. Your script doesn't handle missing rows cleanly and throws an index error at row 47.
  • The EMA and RSI you calculate in the workbook use generic formulas that don't account for the coin's first available date, so the early indicator values are wrong and your backtest is contaminated.

You're a researcher. This is infrastructure work, and it's eating your research time.

The Easy Way: One Prompt in SheetXAI

SheetXAI is an AI agent that lives inside your Excel workbook. It reads the crypto ticker list, calls the Polygon.io crypto aggregates and indicator APIs, and writes OHLCV data and indicator values into per-coin worksheets — handling gaps and missing dates cleanly.

For each crypto ticker in column A, fetch 90 days of daily OHLCV bars from Polygon.io and write the data into a separate sheet tab named after each coin.

What You Get

  • One worksheet per coin, labeled with the ticker (e.g., X:BTCUSD, X:ETHUSD).
  • Columns: Date, Open, High, Low, Close, Volume — one row per trading day.
  • Dates with no data (new listings, exchange downtime) are included as blank rows with a flag rather than silently omitted, so your script can handle them explicitly.
  • All coins on the same 90-day date range for consistent cross-coin analysis.

What If the Data Is Not Quite Ready

I also need 14-day RSI and 20-day EMA for each coin written into the same worksheets

Pull the 14-day RSI and 20-day EMA for all crypto tickers in column A from Polygon.io and write the results into columns B and C of my "Crypto Signals" worksheet.

Three of my coins were listed fewer than 90 days ago and won't have the full history

For each crypto ticker in column A, fetch as much daily OHLCV data as available from Polygon.io going back up to 90 days. If a coin has less than 90 days of history, write what is available and add a note in the worksheet header indicating the first available date.

My ticker list uses CoinGecko IDs instead of Polygon.io format

The crypto tickers in column A use CoinGecko ID format (e.g., bitcoin, ethereum, solana). Convert each to the Polygon.io ticker format (X:BTCUSD, X:ETHUSD, X:SOLUSD) before fetching. Write 90 days of OHLCV into separate worksheets using the Polygon.io format as the worksheet name.

Pull 90 days of OHLCV, calculate total return for each coin, and identify the top 5 performers over the period

For each crypto ticker in column A, fetch 90 days of daily OHLCV from Polygon.io and write it into per-coin worksheets. Then calculate the total return for each coin over the 90-day period as (last close minus first close) divided by first close. Write the results into a "Performance Summary" worksheet sorted by total return descending, and highlight the top 5 performers in green.

One prompt covers the data pull, the return calculation, and the ranked summary across all 13 coins.

Try It

Open an Excel workbook with your crypto tickers in column A and Get the 7-day free trial of SheetXAI. Ask it to fetch 90 days of OHLCV and indicator data from Polygon.io and structure it into per-coin worksheets for your backtest. For technical indicators on an equity or forex watchlist, see the spoke on calculating RSI and EMA. For the full partner overview, see the Polygon.io hub.

Stop memorizing formulas.
Tell your spreadsheet what to do.

Join 4,000+ professionals saving hours every week with SheetXAI.

Learn more