STOCKROCKET · GLOBAL MARKET DATA API

One stock market API for 13+ global markets

StockRocket gives developers, quant teams and trading terminals a unified API for real-time equities, indices and crypto across the US, Hong Kong, China, India, Japan, Korea, Europe and Southeast Asia.

GET https://stock.opencode.fit/api/market/list?asset_type=stock&country_id=5&symbols=AAPL
13+Global markets
20Market endpoints
REST + WSDual-channel access
8K-line intervals

Why use StockRocket

Market venues differ in field definitions, trading sessions, symbol rules and API protocols. StockRocket normalizes global equities, indices and crypto into a consistent data model, so developers do not need a separate collection and cleansing layer for every market.

The platform combines real-time quotes, historical K-lines, tick trades, global indices, symbol search, company profiles, IPO calendars and international financial news. One integration can support market pages, backtesting, monitoring and financial data products.

API keys can be scoped by asset type and allowed countries. REST is a good fit for on-demand snapshots and historical data, while WebSocket supports continuous quote, trade and ticker streams.

Market data built for real products

StockRocket covers the core data endpoints needed to build a market-data product.

Global real-time equities

21 standardized quote and valuation fields including last price, OHLC, change, volume, P/E, market cap, EPS, bid/ask and beta.

Multi-interval OHLCV

1m, 5m, 15m, 30m, 1h, daily, weekly and monthly K-lines returned in one consistent structure.

Live tick trades

Query recent trades through REST or receive continuous price, size and side updates through WebSocket.

Indices and crypto

Global indices and major USDT spot pairs use the same integration model as equities.

IPO and company data

Global and India IPO calendars plus company name, sector, industry and profile lookups.

Scoped access

Issue keys by asset class and country, store credentials as hashes and revoke access instantly.

One API across major global markets

Use country_id to select an equity market and asset_type to choose stocks or crypto. Coverage includes:

United StatesIndiaHong KongMainland ChinaJapanUnited KingdomGermanyAustraliaCanadaSouth KoreaSingaporeMalaysiaIndonesiaUSDT crypto

REST or WebSocket?

Both channels share the same asset and country identifiers, so one product can use either or both.

ChannelBest forCommon endpointsWhat it provides
RESTPage initialization, on-demand queries, batch lists/api/market/list, /api/market/kline, /api/market/tradesClear request-response access for snapshots and historical data
WebSocketLive quotes, tick trades and monitoring/ws, /ws/tradesPersistent server-pushed updates
Unified schemaCross-market dashboards and researchEquities, indices and cryptoLess field transformation across venues

Integrate in three steps

Get a key, select the channel that matches your workload and map the unified response fields.

  1. 1

    Get an API key

    Choose equities, crypto or all assets and configure the countries or regions your application may access.

  2. 2

    Choose REST or WebSocket

    Use REST for page initialization and historical data; open a WebSocket when you need continuous prices or trades.

  3. 3

    Map the unified schema

    Use the API reference to handle quote, OHLCV, order-book, trade and company fields in your product.

Common use cases

Market websites and apps

Build watchlists, quote pages, interactive charts and multi-market dashboards.

Quant research and backtesting

Load historical K-lines, trades and company data into cross-market research datasets.

Trading monitors and alerts

Watch quote, volume and order-book changes through WebSocket streams.

Financial content and data products

Combine indices, IPOs, company profiles and news into a data service.

Stock market API FAQ

Which markets does StockRocket cover?

StockRocket covers the US, India, Hong Kong, mainland China, Japan, the UK, Germany, Australia, Canada, South Korea, Singapore, Malaysia, Indonesia and other markets, plus global indices and 24/7 crypto spot data.

Can I request access to only one country?

Yes. API keys can be scoped by asset type and allowed country or region.

What is the difference between REST and WebSocket?

REST is suited to snapshots, historical K-lines and batch lists. WebSocket is suited to continuous live prices and tick trades. Both can be used in the same application.

Does StockRocket provide historical K-lines?

Yes. Eight intervals are supported, from 1 minute to 1 month, with a consistent OHLCV structure across equities, indices and crypto.

How do I get started?

Request an API key, review the StockRocket API reference for parameters and examples, then open a WebSocket connection when you need continuous updates.

Start building with StockRocket

Request a trial key and connect to real-time equities, indices and crypto.

Get API Key