Index Market Data API

TickDB provides live index values and historical bars across China, Hong Kong, North America, Europe and Asia-Pacific via REST and WebSocket for cross-market analysis.

Market Coverage

Exchange / Category Symbols Data Capabilities Frequency
China Indices 598
  • Index quotes
  • Candlesticks
  • Intraday

Also supports index reference data; intraday and field availability vary by index.

Updates during trading sessions
Hong Kong Indices 5
  • Index quotes
  • Candlesticks
  • Intraday

Also supports index reference data; intraday and field availability vary by index.

Updates during trading sessions
Other Global Indices 13,356
  • Index quotes
  • Candlesticks

Index-value 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.

Global index coverage and capabilities

Explore major indices by region through one API for real-time values, WebSocket updates and historical bars.

01

Greater China

Major mainland China and Hong Kong benchmarks for domestic and cross-market monitoring.

SSE · SZSE · Hang Seng · HSTECH
02

North America

Broad-market, technology, industrial and volatility benchmarks for US risk monitoring.

S&P 500 · NASDAQ · DJIA · VIX
03

Europe

Pan-European and major national benchmarks for regional comparison and cross-time-zone dashboards.

EURO STOXX · DAX · FTSE · CAC
04

Asia-Pacific

Major benchmarks across Japan, Korea, Australia and India.

Japan · Korea · Australia · India
05

Real-time index values

Retrieve the latest index value through REST and stream updates carrying millisecond event timestamps.

REST + WS · ticker
06

Historical bars

Multi-interval OHLCV supports trend comparison, backtesting, derivatives pricing and risk analysis.

REST · kline / intraday

Index symbols, live values and historical bars

How do I find an index API symbol?

Query the catalog with market=GLOBAL&type=indices. Documented examples are SPX (S&P 500), NDX (Nasdaq-100) and DJI (Dow Jones Industrial Average). Use the catalog symbol in requests.

How do index values differ from stock quotes?

The index ticker example returns symbol, type, last_price and timestamp. Do not assume stock volume or order-book fields apply, or substitute an index symbol for a tracking ETF or futures contract.

How do I query historical bars?

Bars support 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 1d, 1w and 1M: lowercase m means minutes, uppercase M means months. start_time/end_time use milliseconds; the default is 100 bars, capped at 1,000. The last bar may still be forming. Historical access depends on entitlements and availability.

Code Examples

REST queries

Use documented symbols as examples; confirm current availability and account permissions in the catalog. Replace YOUR_API_KEY locally; never publish a real key in browser code.

Find symbols
curl --fail-with-body -H "X-API-Key: YOUR_API_KEY" \
  "https://api.tickdb.ai/v1/symbols/available?market=GLOBAL&type=indices&limit=100&offset=0"
Quote snapshot
curl --fail-with-body -H "X-API-Key: YOUR_API_KEY" \
  "https://api.tickdb.ai/v1/market/ticker?symbols=SPX&type=indices"
Daily bars
curl --fail-with-body -H "X-API-Key: YOUR_API_KEY" \
  "https://api.tickdb.ai/v1/market/kline?symbol=SPX&type=indices&interval=1d&limit=100"

Free is a 7-day trial for selected instruments, with quotes and permitted bar queries. It does not allow start_time/end_time historical ranges. Depth, trades and specified historical ranges require the appropriate entitlements; check the current plan for symbols and quotas.

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': ['SPX', 'NDX', 'HSI']
        }
    }))

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 global index data API

Compare timeliness, history, delivery and index licensing as well as coverage. Index values and constituent order books are different capabilities.

Provider Live data / DeliveryHistory / CoverageAccess / Cost modelBest fit
TickDB Multi-market data API
WebSocket index values and REST candle queries.
China, HK and global indices; history varies by instrument, interval and plan. Cross-asset analysis.
API key, no trading account; REST / WebSocket / Skill / MCP / CLI. Free trial; plan-based access.
Market dashboards, risk monitoring and AI briefings.
Massive Specialized index data
Index REST / WebSocket; plan-based real-time access.
Index values, historical bars and reference data.
API key; select index products and business rights.
Specialized index data applications.
Twelve Data Global multi-asset API
Index REST / WebSocket; verify real-time coverage per index.
Time series and indicators alongside other assets.
API key; plan-based coverage and quotas.
Index dashboards and indicator calculations.
Nasdaq Data Link Data products and institutional access
Streaming and REST; real-time or delayed delivery varies by product.
Market, reference and historical data; select datasets separately.
Dataset subscriptions and entitlements.
Institutional data procurement, historical research and data integration.
Yahoo Finance Finance website · additional option
Website quotes vary in delay by market; not equivalent to a developer data-service agreement.
Index pages and historical charts; website terms govern use and redistribution.
Website access; verify terms for third-party tools.
Personal viewing and research reference.

Use Cases

Derivatives Pricing

Real-time index data powering options/futures pricing models and Greeks calculations.

Global Macro Dashboard

Subscribe to US, European, and Asia-Pacific core indices simultaneously to build a cross-timezone real-time macro monitoring panel.

ETF NAV Deviation Monitoring

Compare real-time index values against ETF trading prices to detect premium/discount anomalies.

Choose Your Plan

All paid plans support monthly / quarterly / semi-annual / annual billing. Prices below are annual (20% off)

Free is a 7-day trial for selected instruments, with quotes and permitted bar queries. It does not allow start_time/end_time historical ranges. Depth, trades and specified historical ranges require the appropriate entitlements; check the current plan for symbols and quotas.

🔥 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

Do global indices share trading hours, and do they update overnight?

No. Index calculation and publication follow the index provider, not necessarily a tradable security’s hours. Reference cash-market windows include US regular trading 09:30–16:00 ET, Hong Kong continuous trading 09:30–12:00 and 13:00–16:00 HKT, and A-share trading 09:30–11:30 and 13:00–15:00 Beijing time, including the closing auction. These are reference windows, not a guarantee of continuous index updates. Overnight index futures do not imply overnight updates to a cash index.

Which global indices does TickDB cover?

US (S&P 500, NASDAQ, DJIA), Asia-Pacific (Hang Seng, SSE, SZSE, Nikkei), European (DAX, FTSE 100, CAC 40), and other major global indices.

Is index data real-time?

Yes. Real-time index data is streamed via WebSocket with continuous updates during trading sessions.

Does TickDB provide index constituent data?

Individual stock quotes for index constituents can be accessed through the corresponding market APIs (US stocks, HK stocks, A-shares). Index constituent lists are not yet available but are planned for a future release.

Yahoo Finance already has free index data — why use TickDB?

Consider Massive for index streams, Nasdaq Data Link for dataset procurement and Twelve Data for multi-asset queries. TickDB suits cross-market monitoring. Yahoo Finance remains an additional viewing option, not an equivalent index feed.

How do I find an index API symbol?

Query the catalog with market=GLOBAL&type=indices. Documented examples are SPX (S&P 500), NDX (Nasdaq-100) and DJI (Dow Jones Industrial Average). Use the catalog symbol in requests.

How do index values differ from stock quotes?

The index ticker example returns symbol, type, last_price and timestamp. Do not assume stock volume or order-book fields apply, or substitute an index symbol for a tracking ETF or futures contract.

How do I query historical bars?

Bars support 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 1d, 1w and 1M: lowercase m means minutes, uppercase M means months. start_time/end_time use milliseconds; the default is 100 bars, capped at 1,000. The last bar may still be forming. Historical access depends on entitlements and availability.

What data is included in the free trial?

Free is a 7-day trial for selected instruments, with quotes and permitted bar queries. It does not allow start_time/end_time historical ranges. Depth, trades and specified historical ranges require the appropriate entitlements; check the current plan for symbols and quotas.

Start Streaming Real-time Market Data

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