> ## Documentation Index
> Fetch the complete documentation index at: https://alltick.co/apis/llms.txt
> Use this file to discover all available pages before exploring further.

# REST API

## 1. Overview

The AllTick REST API documentation covers K-lines, batch K-lines, latest order-book depth, latest trade prices, basic stock product information, and suspension and resumption queries.

## 2. Basic information

### 2.1 Base URL

| Product type | Base URL |
| - | - |
| US stocks, Hong Kong stocks, A-shares, and major indices | `https://quote.alltick.co/quote-stock-b-api` |
| Forex, precious metals, cryptocurrencies, crude oil, CFD indices, and commodities | `https://quote.alltick.co/quote-b-api` |

### 2.2 Authentication

```http theme={null}
X-API-Key: {token}
```

### 2.3 Common request header

| Header | Required | Description |
| - | - | - |
| `X-API-Key` | Yes | Authentication token |

## 3. Resources and endpoints

```text theme={null}
/v1/kline                      # Single-product K-lines
/v1/batch-kline                # Batch K-lines
/v1/quote                      # Latest quote (POST, JSON body)
/v1/depth                      # Latest order book (POST, JSON body)
/v1/stock-info                 # Basic stock information
/v1/trading-status/sse         # SSE suspension and resumption
/v1/trading-status/nyse        # NYSE suspension and resumption
/v1/trading-status/nasdaq      # NASDAQ suspension and resumption
```

> **[4. Single-product K-lines](https://alltick.co/apis/apis/en/rest-api/kline.md)**

> **[5. Batch K-lines](https://alltick.co/apis/apis/en/rest-api/batch-kline.md)**

> **[6. Latest quote](https://alltick.co/apis/apis/en/rest-api/trade-tick.md)**

> **[7. Latest order book](https://alltick.co/apis/apis/en/rest-api/depth-tick.md)**

> **[8. Stock product information](https://alltick.co/apis/apis/en/rest-api/static-info.md)**

> **[9. Suspension and resumption](https://alltick.co/apis/apis/en/rest-api/suspension.md)**


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.