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

# HTTP 通用标准头

> 本页面专门说明AllTick REST行情接口使用的HTTP通用标准报文头字段，包括token、Content-Type、Accept等必填与可选Header的含义和示例，帮助开发者正确构造HTTP请求，确保访问外汇、股票和加密货币Tick数据API时通过认证并获得正确响应。

## 请求通用标准头介绍

| 字段    | 名称  | 类型     | 必填项 | 说明                        |
| ----- | --- | ------ | --- | ------------------------- |
| trace | 跟踪号 | string | 是   | 请求者生成唯一，响应与请求将保持一致,最大长度64 |
| data  | 数据体 | object | 是   | 具体数据格式见各个接口定义             |

```
{
    "trace":"c2a8a146-a647-4d6f-ac07-8c4805bf0b74",
    "data":{
    }
}
```

## 应答通用标准头介绍

| 字段    | 名称  | 类型     | 说明                                                  |
| ----- | --- | ------ | --------------------------------------------------- |
| ret   | 返回值 | int32  | [错误码说明](/zh/getting-started/error-code-description) |
| msg   | 消息  | string | 对成功或者失败具体的描述                                        |
| trace | 跟踪号 | string | 请求者生成唯一，响应与请求将保持一致,最大长度64                           |
| data  | 数据体 | object | 具体数据格式见各个接口定义                                       |

```
{
    "ret":202,
    "msg":"request data param invalid",
    "trace":"c2a8a146-a647-4d6f-ac07-8c4805bf0b74",
    "data":{
    }    
}
```

***

#### AllTick网站

<Note>
  官方网站：<a href="https://alltick.co/">[https://alltick.co/](https://alltick.co/)</a>
</Note>

<script src="/seo-keywords.js" />
