Skip to Content

Twelve Data Data Parser & API

Twelve Data is a developer-focused financial market data provider covering stocks, ETFs, forex, crypto, commodities and indices worldwide, and StockAPIS extracts its data — real-time and historical quotes, OHLCV time series, technical indicators and fundamentals — through a single unified REST API. Twelve Data offers an official REST and WebSocket API, and StockAPIS normalizes it to the same schema you use for every other source, so you query Twelve Data, Polygon and Alpha Vantage the same way without maintaining separate integrations.

TypeFinancial market data API
HQUnited States (San Francisco) / Cyprus
OwnerTwelve Data, Inc.
Asset classesStocks, ETFs, Forex, Crypto, Commodities, Indices
CoverageGlobal markets — 100k+ instruments across stocks, forex, crypto and indices
ScaleTop-tier multi-asset data vendor (developer-focused)
API accessOfficial API
Parse priority★★★★☆
Official sitetwelvedata.com

Platform Overview

Market Position

  • A widely adopted multi-asset market data API aimed at developers, fintechs and quant teams
  • Single API spanning stocks, ETFs, forex pairs, cryptocurrencies, commodities and indices
  • Real-time and historical coverage across global exchanges with 100k+ instruments
  • Official REST + WebSocket API, complemented by StockAPIS’s unified normalization

Data Coverage

StockAPIS exposes the full Twelve Data surface:

  • Real-time quotes — live price, change, percent change, bid/ask and intraday OHLC
  • Time series (OHLCV) — candlestick data from 1-minute to monthly intervals for history and backtesting
  • Forex & crypto — currency pairs and digital-asset rates with the same schema as equities
  • Technical indicators — 100+ built-in indicators including SMA, EMA, RSI, MACD and Bollinger Bands
  • Fundamentals & reference — company profiles, earnings, dividends, splits and symbol/exchange metadata
  • Economic & index data — major indices and macro series for cross-asset context

Quick Start

import stockapis client = stockapis.Client(api_key="your-api-key") # Real-time quote for a US equity from Twelve Data quote = client.twelve_data.get_quote(symbol="AAPL") print(f"Apple: ${quote['close']} · {quote['percent_change']}%")
const { StockAPIS } = require("stockapis"); const client = new StockAPIS({ apiKey: "your-api-key" }); // 1-minute OHLCV time series const series = await client.twelveData.getTimeSeries({ symbol: "AAPL", interval: "1min", }); console.log(series.values[0]);

Sample API Response

{ "success": true, "data": { "symbol": "AAPL", "name": "Apple Inc", "exchange": "NASDAQ", "currency": "USD", "datetime": "2024-01-15 10:30:00", "open": "184.35", "high": "186.12", "low": "183.90", "close": "185.92", "volume": "45678900", "change": "2.15", "percent_change": "1.17" }, "metadata": { "source": "twelve-data", "timestamp": "2024-01-15T10:30:00.000Z" } }

Use Cases

  • Multi-asset apps — power dashboards and trading tools that mix stocks, forex and crypto on one schema
  • Quant research & backtesting — pull OHLCV history and indicators for strategy development
  • Charting & technical analysis — drive candlestick charts and built-in indicators like RSI and MACD
  • Portfolio tracking — real-time quotes and fundamentals for valuation, P&L and corporate-action handling

Frequently Asked Questions

Does Twelve Data have an official API? Yes — Twelve Data provides an official REST and WebSocket API. StockAPIS wraps it in a unified schema so Twelve Data matches every other source you pull.

What data can I get from Twelve Data through StockAPIS? Real-time and historical quotes, OHLCV time series across intervals, 100+ technical indicators, forex and crypto rates, plus fundamentals like profiles, earnings, dividends and splits.

Which markets and asset classes does Twelve Data cover? Global stocks and ETFs, forex pairs, cryptocurrencies, commodities and indices — over 100k instruments across major exchanges worldwide.

Last updated on