Twelve Data
Stock market data (real-time & historical)
Twelve Data offers real-time and historical market data for stocks, forex, ETFs, mutual funds, cryptocurrencies, commodities, and bonds across 84 global exchanges. The API includes 100+ technical indicators, batch requests, and WebSocket streaming. Data is delivered in clean JSON with good documentation.
For OpenClaw agents, Twelve Data provides a well-rounded financial data API with broader market coverage than most competitors. Your agent can fetch multi-asset prices, run technical analysis, and generate market reports covering stocks, crypto, and forex in a single integration.
Tags: data, finance
Category: Finance
Use Cases
- Build multi-asset portfolio trackers covering stocks, crypto, and forex
- Generate daily technical analysis reports with built-in indicator endpoints
- Track commodity prices (gold, oil) alongside equity positions
Tips
- Use batch requests to fetch multiple symbols in one API call and save credits
- The technical indicator endpoints are well-implemented — use them instead of computing locally
- Cache historical data aggressively — it doesn't change once the trading day is over
Known Issues & Gotchas
- Free tier is limited to 3 exchanges — most international markets require paid plans
- Credit system can be confusing — some endpoints cost multiple credits per call
- WebSocket streaming is a trial feature on free/Grow plans, not fully included
Frequently Asked Questions
What are API credits in Twelve Data?
Credits are the rate-limiting unit. Most standard endpoints cost 1 credit per call. Some premium endpoints cost more. The free tier gives 8 credits/minute and 800/day.
Does the free tier cover Indian markets?
The free tier covers 3 exchanges (US-focused). Indian exchanges like BSE/NSE require the Grow plan ($29/mo) or higher which unlocks 27+ exchanges.
How does it compare to Finnhub?
Twelve Data has broader asset class coverage (bonds, mutual funds, commodities) and better international exchange support. Finnhub has a more generous free tier and better alternative data. Pick based on what markets you need.