Forex Market Data API
Covering 1,228 forex instruments including major and cross currency pairs, metals & commodities. WebSocket tick-by-tick quotes for forex quant trading and risk management.
Market Coverage
| Exchange / Category | Symbols | Data Capabilities | Frequency |
|---|---|---|---|
| Major Currency Pairs | 14 |
Live quotes include bid, ask and spread. | Updates during trading sessions |
| Minor Currency Pairs | 42 |
Live quotes include bid, ask and spread. | Updates during trading sessions |
| Exotic Currency Pairs | 1,151 |
Live quotes include bid, ask and spread. | Updates during trading sessions |
| Metals | 9 |
Quote streaming and candlestick queries. | Updates during trading sessions |
| Energy | 5 |
Quote streaming and candlestick queries. | Updates during trading sessions |
| Agriculture | 9 |
Quote streaming and candlestick queries. | Updates during trading sessions |
Candlesticks are queried via REST; live subscriptions use supported channels. Endpoints, fields and historical coverage depend on the instrument, plan permissions and available data. Instrument counts do not imply full capability coverage for every instrument.
Code Examples
Quick Start
# pip install websocket-client
import websocket
import json
api_key = 'your_api_key_here'
ws_url = f'wss://api.tickdb.ai/v1/realtime?api_key={api_key}'
def on_open(ws):
ws.send(json.dumps({
'cmd': 'subscribe',
'data': {
'channel': 'ticker',
'symbols': ['XAUUSD', 'EURUSD', 'GBPUSD']
}
}))
def on_message(ws, message):
data = json.loads(message)
print('Received:', data)
ws = websocket.WebSocketApp(ws_url, on_open=on_open, on_message=on_message)
ws.run_forever() Full documentation available at API Documentation
Choosing a forex market data API
Distinguish quote streams, executed trades and order books. Bid/ask and spread support currency monitoring but are not centralized-exchange trade data.
| Provider | Quotes / Streaming | Scope / Depth | Access / Cost model | Best fit |
|---|---|---|---|---|
| TickDB Cross-asset market data API | Standard WebSocket quotes and REST queries; forex pairs include bid, ask and spread. | Candles and related commodities; fields vary by instrument. No forex order book or executed-trade feed. | API key, no trading account; REST / WebSocket / Skill / MCP / CLI. Free trial; plan-based access. | Currency alerts, gold correlation, cross-asset dashboards and AI queries. |
| OANDA API Forex brokerage API | HTTP pricing stream; up to four updates per second per instrument. | Account bid/ask, liquidity tiers and candles; not a centralized forex order book. | v20 account and token; products, regions and fees depend on account services. | OANDA data-and-trading workflows. |
| Twelve Data Global multi-asset API | WebSocket price streams and REST queries. | Forex and equity time series, indicators, CLI and MCP. | API key; quotas, subscriptions and usage rights vary by plan. | General market apps and multi-asset indicator queries. |
| Alpha Vantage Query and technical indicator API | Primarily REST currency and time-series queries. | Forex OHLC and technical indicators. | API key; plan-based quotas and real-time entitlements. | Low-frequency forex analysis and prototypes. |
Use Cases
Forex Quant Strategies
Tick-by-tick data powering high-frequency strategies with concurrent multi-pair subscriptions.
Corporate FX Risk Management
Real-time exchange rate monitoring for import/export businesses, triggering alerts or hedging when rates hit thresholds.
Triangular Arbitrage
Low-latency synchronized multi-pair quotes to identify triangular arbitrage windows (e.g. EUR/USD โ USD/JPY โ EUR/JPY).
Choose Your Plan
All paid plans support monthly / quarterly / semi-annual / annual billing. Prices below are annual (20% off)
Free
- Selected symbols*
- 5 concurrent subscriptions
- Real-time quotes
- Real-time K-line
- 1 WebSocket connection
- 30 req/min API calls
- Email support
Starter
Billed annually $950
- All symbols
- 50 full-market subscriptions
- Real-time quotes
- Real-time K-line
- Real-time order book
- Real-time trades
- 1 year historical data
- 1 WebSocket connection
- 60 req/min API calls
- Basic financial data
- Email support
Professional
Billed annually $2870
- All symbols
- 300 full-market subscriptions
- Real-time quotes
- Real-time K-line
- Real-time order book
- Real-time trades
- 3 years historical data
- 3 WebSocket connections
- 600 req/min API calls
- Professional financial data
- News data
- Telegram support
Enterprise
Billed annually $8630
- All symbols
- Full-market queries and subscriptions
- Additional 5000 full-market subscriptions
- Real-time quotes
- Real-time K-line
- Real-time order book
- Real-time trades
- 10 years historical data
- 10 WebSocket connections
- 1800 req/min API calls
- Professional financial data
- News data
- Telegram support
FAQ
How many currency pairs does TickDB cover?
What is the latency for forex data?
Is data available on weekends and holidays?
How does TickDB compare to OANDA?
Does the free plan include forex data?
Explore Other Markets
Start Streaming Real-time Market Data
Sign up for a free API Key. WebSocket real-time streaming. Get started in minutes.