Endpoints

This section describes how to access real-time and historical market data through our REST APIs. All endpoints support batch queries and follow a consistent RESTful path structure.

1. Batch Candlestick Data Query

Retrieve multiple candlestick data series for stocks, cryptocurrencies, forex, commodities, or futures in a single request.

1.1 Path Parameters

Each endpoint requires the following path parameters:

Parameter
Type
Required
Description
Example

klineType

int

Yes

Defines the type (interval) of the candlestick. Available values: 1 = 1-min 2 = 5-min 3 = 15-min 4 = 30-min 5 = 1-hour 6 = 2-hour 7 = 4-hour 8 = 1-day 9 = 1-week 10 = 1-month 11 = 1-quarter 12 = 1-year

1

klineNum

int

Yes

The number of candlesticks to return. For a single symbol, up to 500 candles can be retrieved. For multiple symbols in one request, only the latest 2 candles per symbol will be returned.

10

codes

string

Yes

The instrument codes to query. Multiple symbols should be separated by commas. A maximum of 100 symbols can be queried at once. Refer to the symbol list for valid codes.

TSLA.US,AAPL.US

1.2 Endpoints

Market Type
Endpoint

Stocks

data.infoway.io/stock/batch_kline/{klineType}/{klineNum}/{codes}

Crypto

data.infoway.io/crypto/batch_kline/{klineType}/{klineNum}/{codes}

Forex, Commodities, Futures

data.infoway.io/common/batch_kline/{klineType}/{klineNum}/{codes}

1.3 Example

GET https://data.infoway.io/stock/batch_kline/1/10/AAPL.US,TSLA.US

2. Batch Trade Details Query

Retrieve recent trade details for multiple instruments simultaneously.

Market Type
Endpoint

Stocks

data.infoway.io/stock/batch_trade/{codes}

Crypto

data.infoway.io/crypto/batch_trade/{codes}

Forex, Commodities, Futures

data.infoway.io/common/batch_trade/{codes}

Example

GET https://data.infoway.io/crypto/batch_trade/BTCUSDT,ETHUSDT

3. Batch Order Book (Depth) Query

Retrieve current order book snapshots (bid/ask depth) for multiple symbols at once.

Market Type
Endpoint

Stocks

data.infoway.io/stock/batch_depth/{codes}

Crypto

data.infoway.io/crypto/batch_depth/{codes}

Forex, Commodities, Futures

data.infoway.io/common/batch_depth/{codes}

Example

GET https://data.infoway.io/common/batch_depth/EURUSD,XAUUSD

Last updated