> ## 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. 概述

AllTick REST API 文档包含 K线、批量 K线、最新盘口、最新成交价、股票产品基础信息、停复牌信息查询等说明。

## 2. 基础信息

### 2.1 Base URL

| 产品类型                    | Base URL                                     |
| ----------------------- | -------------------------------------------- |
| 美股、港股、A股、大盘数据           | `https://quote.alltick.co/quote-stock-b-api` |
| 外汇、贵金属、加密货币、原油、CFD指数、商品 | `https://quote.alltick.co/quote-b-api`       |

### 2.2 认证方式

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

### 2.3 通用请求头

\| Header | 必填 | 说明 |
\| --- | --- |
\| `X-API-Key` | 是 | 身份认证令牌 |

## 3. 资源与端点设计

```text theme={null}
/v1/kline                      # 单产品k线
/v1/batch-kline                # 多产品k线
/v1/quote                      # 最新报价
/v1/depth                      # 最新盘口
/v1/stock-info                 # 股票基础信息
/v1/trading-status/sse         # 上海证券交易所停复牌信息
/v1/trading-status/nyse        # 纽约证券交易所停复牌信息
/v1/trading-status/nasdaq      # 纳斯达克交易所停复牌信息
```

<CardGroup cols={2}>
  <Card title="4. 单产品k线" href="/apis/apis/zh/rset-api/kline" />

  <Card title="5. 多单产品k线" href="/apis/apis/zh/rset-api/batch-kline" />

  <Card title="6. 最新报价" href="/apis/apis/zh/rset-api/trade-tick" />

  <Card title="7. 最新盘口" href="/apis/apis/zh/rset-api/depth-tick" />

  <Card title="8. 股票产品信息" href="/apis/apis/zh/rset-api/static-info" />

  <Card title="9. 停复牌信息" href="/apis/apis/zh/rset-api/suspension" />
</CardGroup>
