Back to Integrations
SheetXAI logo
Twelve Data logo
Twelve Data · Excel Integration

How to Connect Twelve Data to Excel (4 Methods Compared)

The Problem With Getting Workbook Data In and Out of Twelve Data

You have an Excel workbook — a portfolio tracker, a peer-group analysis table, a valuation screen — and the financial data it needs lives in Twelve Data's API. Getting that data into the workbook means constructing the right API call, handling the JSON or CSV response, and manually pasting values into the correct cells. Each refresh cycle repeats the whole sequence.

Twelve Data is good at delivering consistent, well-documented market data for stocks, forex, ETFs, crypto, and derivatives. But wiring that data feed into an Excel workbook on a recurring basis takes more setup than the actual analysis warrants. The default pattern is exporting to CSV from Twelve Data's dashboard, opening the file, and manually aligning the data to whatever column structure your model requires — which is often different from what the export provides.

Below are the four approaches teams take. Only the last one fits into a normal schedule.

Method 1: CSV Export and Paste

Download the relevant data from Twelve Data's web interface or hit the endpoint manually and save the output as a CSV. Open it in Excel. Copy the columns you need. Paste them into the right spots in your workbook. Reformat dates, fix decimal places, and align the row order.

If you're doing this for five tickers once a month, the cost is manageable. If you're tracking 35 holdings and need to refresh twice a week, the CSV export becomes a habit you resent. Each run requires the same cleanup: verifying the date axis is consistent across tickers, catching the occasional missing trading day, and re-running any formulas that broke because a column shifted. The work is not hard. It just never ends.

Method 2: Power Automate

Power Automate has flow options that can call an external API and write results to an Excel workbook via the Office 365 connector. The architecture is sound: trigger fires on a schedule, call Twelve Data, write to the workbook.

Quick check before you continue — do you know what a scheduled cloud flow is? An HTTP action? How to map a JSON array response into Excel rows using the "Add a row" action? If any of those terms are uncertain, this path is going to require learning a second tool before you get your data. Method 3 or 4 will get you there faster.

If you're still reading: Power Automate setup for this use case involves creating a scheduled flow, building an HTTP action for the Twelve Data endpoint, parsing the response body, and mapping individual fields to columns via the dynamic content panel. It works, but each field mapping is done manually, and the flow breaks any time you rename a column or adjust the response parameters.

A flow that writes one row at a time is not the same as a bulk historical pull.

Pulling a year of daily prices for 30 tickers means 30 separate flow runs, each with its own execution history, each with its own potential failure mode if the Twelve Data rate limit kicks in or a ticker is unavailable for a given date range.

You probably just need the pricing data in the workbook. You probably have no idea how to build a Power Automate HTTP flow that parses nested JSON — and that is not a reasonable thing to need to know just to update a portfolio sheet. So you push it to someone on your team who builds these things, and now you're waiting on a calendar invite for a 30-minute "quick sync" about a report that should have taken five minutes.

And once you need aggregations — rolling returns, ranked FCF yields, volatility bands — Power Automate hands you back raw data and leaves the analysis entirely to you.

Method 3: The Previous Generation — Connector Add-Ons

Until recently, the best repeatable approach for Excel-to-financial-API workflows was a category of add-ons that let you configure saved endpoint templates, define column mappings, and run scheduled fetches. You built the template once, tagged your fields, and let it run.

That was a meaningful improvement over manual CSV exports. Configs persisted across runs, output landed in the right columns, and refresh cycles were less painful.

But every template was your responsibility to maintain. When Twelve Data changed a field name or you added new tickers to your coverage, the template broke and stayed broken until someone had time to fix it. The add-on moved data reliably, but all the configuration overhead stayed on the operator. And the moment your workbook structure changed — a new column, a reordered sheet — you were back in the config editor.

This is the previous generation. It reduced the manual burden without removing it.

The Easy Way: Using SheetXAI in Excel

There is a better way. SheetXAI is an AI agent that lives inside your Excel workbook. It reads the workbook, understands the structure on each worksheet, and through its built-in Twelve Data integration it can pull time series, fundamentals, technical indicators, or live quotes into the right cells. No endpoint configuration, no field mapping, no Power Automate flow to maintain. You just describe what you want.

Example 1: Refresh live portfolio quotes

Fetch the latest real-time quote from Twelve Data for each stock symbol in column A and write current price, dollar change, and percent change into columns B, C, and D.

All 35 holdings update in one pass. No individual ticker lookups, no cell-by-cell pasting.

Example 2: Add Bollinger Band columns to a volatility sheet

Fetch Bollinger Bands from Twelve Data for each ticker in column A using 20-period daily data and write the upper band, lower band, SMA midline, and bandwidth percentage into columns B through E. Flag tickers where bandwidth is in the bottom 10th percentile of the group as LOW-SQUEEZE in column F.

The pattern: the conditional classification and the data pull happen in a single prompt, with no intermediate manual step.

Try It

Get the 7-day free trial of SheetXAI and open any Excel workbook with stock tickers, ETF symbols, or currency pairs, then ask it to do one of the tasks above. The Twelve Data integration is included in every SheetXAI plan.

More Twelve Data + Excel guides

Pull a Year of Daily Closing Prices Into a Google Sheet for Rolling Return Calculations

Fetch 365 days of daily EOD prices for every ticker in your watchlist and lay them out in a date-stamped grid for rolling return analysis.

Refresh Live Market Quotes Across a Google Sheet Portfolio Dashboard

Update price, dollar change, and percent change for every holding in your portfolio tracker in a single SheetXAI prompt.

Build a Fundamental Data Table in a Google Sheet From Income Statement Data

Pull revenue, net income, and EPS for multiple stocks from Twelve Data and populate a DCF-ready table in your Google Sheet.

Pull Cash Flow Statements Into a Google Sheet for Peer Group Comparison

Fetch quarterly operating cash flow, capex, and free cash flow for a peer group of stocks and rank them by FCF yield.

Build a Dividend and Earnings Calendar in a Google Sheet for an Income Portfolio

Combine ex-dividend dates, pay dates, dividend amounts, and earnings dates for every holding into one Google Sheet calendar.

Audit a Google Sheet Cost-Basis Record for Stock Splits Using Twelve Data

Check all positions for historical stock splits, write split ratios and dates, and prepare your sheet for adjusted cost-basis recalculation.

Add RSI, MACD, and Bollinger Band Columns to a Watchlist Google Sheet

Populate a full set of technical signal columns for every ticker in your watchlist to power a momentum screening model.

Enrich a Volatility Report Google Sheet With Bollinger Band and Squeeze Metrics

Add Bollinger Band upper, lower, midline, and bandwidth percentage to identify low-volatility squeeze candidates in your options workflow.

Build a Trend-Direction Dashboard Column in a Google Sheet Using Aroon and MACD

Add Aroon Up/Down values and MACD crossover status to a Google Sheet swing-trading dashboard for directional analysis.

Pull Analyst Consensus and Price Targets Into a Google Sheet Morning Briefing Dashboard

Fetch buy/hold/sell counts, mean price target, and EPS revision direction for your coverage list into a Google Sheet.

Pull ETF Composition and Top Holdings Into a Google Sheet for Fund Comparison

Fetch top holdings, sector weights, and expense ratios for a list of ETFs to identify concentration overlap in a Google Sheet.

Add a Risk-Metrics Panel to a Fund Screener Google Sheet Using Twelve Data

Populate beta, standard deviation, Sharpe ratio, and Sortino ratio for each fund in your screening sheet.

Enrich a Due-Diligence Google Sheet With Institutional Ownership Data

Add institutional holder count, top-5 owners by name and percentage, and total institutional ownership to your small-cap research sheet.

Export an Options Chain Snapshot Into a Google Sheet for Volatility Surface Analysis

Pull strike, bid, ask, implied volatility, delta, and open interest for multiple expiries into a Google Sheet to build a volatility surface.

Build a Multi-Currency P&L Converter in a Google Sheet Using Live Forex Rates

Fetch live exchange rates for each currency exposure and apply them to produce a real-time functional-currency P&L column in Google Sheets.

Capture a Daily Market Movers Report in a Google Sheet as a Research Starting Point

Pull top gainers and losers with symbol, percent change, and volume into a Google Sheet each morning to seed your session watchlist.

Build a Live Crypto Portfolio Tracker in a Google Sheet With Twelve Data Prices

Fetch live prices and 24-hour changes for every crypto holding and calculate real-time portfolio value in your Google Sheet.

Enrich a Stock List Google Sheet With Company Metadata for Sector Filtering

Fill sector, industry, country, and exchange for 100 tickers so you can pivot and filter by sector in your Google Sheet model.

Fill a Valuation Dashboard Google Sheet With P/E, Price-to-Book, and 52-Week Range

Populate P/E, forward P/E, price-to-book, price-to-sales, and 52-week high/low for a stock screen in Google Sheets.

Build a Pairwise Correlation Matrix in a Google Sheet Using Twelve Data Returns

Calculate Pearson correlation coefficients between every pair of ETFs or cryptos in your Google Sheet using 1-year daily returns.

Stop memorizing formulas.
Tell your spreadsheet what to do.

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

Learn more