Skip to main content

Twelve Data API

Real-time global financial market data from Twelve Data. Anti-detection technology, comprehensive API documentation, stocks, forex, crypto, commodities, and institutional-grade market insights for traders and investors worldwide.

🚀 Overview

The Twelve Data Parser provides enterprise-level data extraction from Twelve Data's comprehensive financial market data platform, including real-time market data, historical information, and detailed financial metrics for global stocks, forex, cryptocurrencies, commodities, and indices with a focus on multi-asset coverage, real-time streaming, and institutional-grade data quality.

Key Features

  • 🌍 Global Markets - Stocks, forex, crypto, commodities worldwide
  • ⚡ Real-time Data - Live market data and streaming feeds
  • 📊 Multi-asset - Comprehensive coverage across all asset classes
  • 🛡️ Anti-detection - Advanced bypass technology
  • 📈 Historical Data - Extensive historical data and backtesting

📊 Data Points

  • Stock Market Data - Real-time prices, volume, market cap, dividends
  • Forex Data - Currency pairs, exchange rates, volatility
  • Cryptocurrency Data - Crypto prices, market cap, volume, dominance
  • Commodity Data - Gold, silver, oil, natural gas prices
  • Index Data - Major indices, sector indices, regional indices
  • Economic Data - Economic indicators, central bank rates
  • Technical Indicators - Moving averages, RSI, MACD, Bollinger Bands

🛠️ Quick Start

// Initialize Twelve Data parser
// const twelveDataParser = new StockAPIParser({
apiKey: 'your-api-key',
platform: 'twelve-data',
});

// Get stock market data
// const stockData = await twelveDataParser.getStockData({
symbol: 'AAPL',
interval: '1min'
});

// console.log('Stock price:', stockData.price);

Python Example

import stockapi

# Initialize client
client = stockapi.Client(api_key='your-api-key')

# Get stock market data
stock_data = client.twelve_data.get_stock_data(symbol='AAPL', interval='1min')

print(f"Stock price: ${stock_data['price']}")

📈 API Endpoints

Stock Market Data

// Get real-time stock data
// const stockData = await twelveDataParser.getStockData({
symbol: 'TSLA',
interval: '1min'
});

// Get historical stock data
// const history = await twelveDataParser.getHistory({
symbol: 'GOOGL',
interval: '1day',
start_date: '2024-01-01',
end_date: '2024-01-15'
});

// Get stock quotes
// const quotes = await twelveDataParser.getQuotes({
symbols: ['AAPL', 'MSFT', 'GOOGL']
});

Forex Data

// Get forex data
// const forexData = await twelveDataParser.getForexData({
symbol: 'EUR/USD',
interval: '1min'
});

// Get forex quotes
// const forexQuotes = await twelveDataParser.getForexQuotes({
symbols: ['EUR/USD', 'GBP/USD', 'USD/JPY']
});

// Get forex history
// const forexHistory = await twelveDataParser.getForexHistory({
symbol: 'EUR/USD',
interval: '1hour',
period: '30d'
});

Cryptocurrency Data

// Get crypto data
// const cryptoData = await twelveDataParser.getCryptoData({
symbol: 'BTC/USD',
interval: '1min'
});

// Get crypto quotes
// const cryptoQuotes = await twelveDataParser.getCryptoQuotes({
symbols: ['BTC/USD', 'ETH/USD', 'ADA/USD']
});

// Get crypto history
// const cryptoHistory = await twelveDataParser.getCryptoHistory({
symbol: 'BTC/USD',
interval: '1day',
period: '90d'
});

🔧 Advanced Features

Real-time Streaming

// Create WebSocket connection for real-time data
// const stream = twelveDataParser.createWebSocket({
channels: ['stocks', 'forex', 'crypto'],
symbols: ['AAPL', 'EUR/USD', 'BTC/USD']
});

// stream.on('data', (data) => {
// console.log('Real-time update:', data);
});

// stream.on('error', (error) => {
// console.error('Stream error:', error);
});

Batch Processing

// Get data for multiple symbols efficiently
// const batchData = await twelveDataParser.getBatchData({
symbols: ['AAPL', 'TSLA', 'GOOGL', 'MSFT', 'AMZN'],
functions: ['quotes', 'history', 'indicators']
});

📊 Sample API Response

{
"success": true,
"data": [
{
"symbol": "AAPL",
"price": 185.92,
"change": 2.15,
"change_percent": 1.17,
"volume": 45678900,
"market_cap": 2900000000000,
"timestamp": "2024-01-15T10:30:00.000Z"
}
],
"metadata": {
"timestamp": "2024-01-15T10:30:00.000Z",
"source": "twelve-data",
"cache_hit": false,
"response_time": "120ms"
}
}

🎯 Use Cases

Multi-asset Trading

  • Stock Trading - Access real-time stock market data
  • Forex Trading - Trade currency pairs with live data
  • Crypto Trading - Trade cryptocurrencies with market data
  • Commodity Trading - Trade commodities and futures

Portfolio Management

  • Portfolio Tracking - Track multi-asset portfolios
  • Risk Management - Manage risk across different asset classes
  • Performance Analysis - Analyze portfolio performance
  • Asset Allocation - Optimize asset allocation strategies

Research & Analysis

  • Market Research - Research global financial markets
  • Technical Analysis - Perform technical analysis on any asset
  • Backtesting - Backtest trading strategies
  • Economic Analysis - Analyze economic indicators and trends

🚀 Get Started Today

Free Trial

Start with our free tier and get instant access to:

  • 1,000 API calls per month
  • Basic market data
  • Documentation and support
  • SDK downloads

Professional Plans

Upgrade to professional plans for:

  • Unlimited API calls
  • Premium market feeds
  • Priority support
  • Custom integrations

Enterprise Solutions

Contact us for enterprise solutions:

  • Custom market feeds
  • Dedicated infrastructure
  • SLA guarantees
  • White-label solutions

Ready to access real-time global financial market data from Twelve Data? Get started today and transform your trading with comprehensive multi-asset market data and institutional-grade insights.