# Endpoints

### 1. Batch Candlestick Data Query（[Detail Api Desc](/en-docs/rest-api/market-data/post-candlestick-real-historical.md)）

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

#### 1.1 Endpoints

<table><thead><tr><th width="150.33331298828125">Market Type</th><th>Endpoint</th></tr></thead><tbody><tr><td>Stocks</td><td><code>data.infoway.io/stock/v2/batch_kline</code></td></tr><tr><td>Crypto</td><td><code>data.infoway.io/crypto/v2/batch_kline</code></td></tr><tr><td>Forex, Commodities, Futures</td><td><code>data.infoway.io/common/v2/batch_kline</code></td></tr></tbody></table>

#### 1.2 Example

```ruby
GET https://data.infoway.io/stock/v2/batch_kline
```

### 2. Batch Trade Details Query（[Detail Api Desc](/en-docs/rest-api/market-data/get-latest-trade.md)）

Retrieve recent trade details for multiple instruments simultaneously.

<table><thead><tr><th width="150.3333740234375">Market Type</th><th>Endpoint</th></tr></thead><tbody><tr><td>Stocks</td><td><code>data.infoway.io/stock/batch_trade/{codes}</code></td></tr><tr><td>Crypto</td><td><code>data.infoway.io/crypto/batch_trade/{codes}</code></td></tr><tr><td>Forex, Commodities, Futures</td><td><code>data.infoway.io/common/batch_trade/{codes}</code></td></tr></tbody></table>

**Example**

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

#### 3. Batch Order Book (Depth) Query（[Detail Api Desc](/en-docs/rest-api/market-data/get-market-depth.md)）

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

<table><thead><tr><th width="149.77777099609375">Market Type</th><th>Endpoint</th></tr></thead><tbody><tr><td>Stocks</td><td><code>data.infoway.io/stock/batch_depth/{codes}</code></td></tr><tr><td>Crypto</td><td><code>data.infoway.io/crypto/batch_depth/{codes}</code></td></tr><tr><td>Forex, Commodities, Futures</td><td><code>data.infoway.io/common/batch_depth/{codes}</code></td></tr></tbody></table>

**Example**

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.infoway.io/en-docs/getting-started/endpoints.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
