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
  • Quotes
  • Candlesticks

Live quotes include bid, ask and spread.

Updates during trading sessions
Minor Currency Pairs 42
  • Quotes
  • Candlesticks

Live quotes include bid, ask and spread.

Updates during trading sessions
Exotic Currency Pairs 1,151
  • Quotes
  • Candlesticks

Live quotes include bid, ask and spread.

Updates during trading sessions
Metals 9
  • Quotes
  • Candlesticks

Quote streaming and candlestick queries.

Updates during trading sessions
Energy 5
  • Quotes
  • Candlesticks

Quote streaming and candlestick queries.

Updates during trading sessions
Agriculture 9
  • Quotes
  • Candlesticks

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 / StreamingScope / DepthAccess / Cost modelBest 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)

๐Ÿ”ฅ Save 20% Annually

Free

Free 7-Day Trial

 

  • Selected symbols*
  • 5 concurrent subscriptions
  • Real-time quotes
  • Real-time K-line
  • 1 WebSocket connection
  • 30 req/min API calls
  • Email support
Start Free
-20%

Starter

$99/mo
$79 /mo

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
Subscribe Now
-20%
Most Popular

Professional

$299/mo
$239 /mo

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
Subscribe Now
-20%

Enterprise

$899/mo
$719 /mo

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
Subscribe Now

FAQ

How many currency pairs does TickDB cover?
1,228 forex instruments, including all major pairs (EUR/USD, GBP/USD, etc.), cross pairs, emerging market pairs, precious metals, and commodities.
What is the latency for forex data?
Forex is TickDB's lowest-latency asset class. WebSocket push latency is typically within 30-50ms.
Is data available on weekends and holidays?
The forex market trades 24 hours Monday through Friday and is closed on weekends. TickDB streams real-time data continuously during trading hours.
How does TickDB compare to OANDA?
OANDA fits its trading ecosystem, Twelve Data multi-asset queries and indicators, and Alpha Vantage lower-frequency analysis. TickDB suits account-independent forex and cross-asset dashboards.
Does the free plan include forex data?
Yes. The free plan includes real-time data for select major currency pairs with rate limits. Upgrade to unlock all pairs and higher push frequencies.

Start Streaming Real-time Market Data

Sign up for a free API Key. WebSocket real-time streaming. Get started in minutes.