---
updatedAt: 2025-06-26T14:00:24.000Z
agentTools:
  projectIndex: https://infoway.readme.io/llms.txt
---

# 获取股票实时盘口

获取股票实时盘口

支持批量获取交易数据，每次请求最大支持100个标的

## 入参说明

<Table>
  <thead>
    <tr>
      <th>
        参数名
      </th>

      <th>
        类型
      </th>

      <th>
        必填
      </th>

      <th>
        描述
      </th>

      <th>
        示例值
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        codes
      </td>

      <td>
        String
      </td>

      <td>
        是
      </td>

      <td>
        标的列表，多个用,间隔，最大支持100个标的
      </td>

      <td>
        `002594.SZ,00285.HK,  
        TSLA.US,AUDCAD,HK50,XNIUSD`
      </td>
    </tr>
  </tbody>
</Table>

## 出参说明

| 字段名 | 类型     | 必填 | 描述                                     | 示例值                           |
| --- | ------ | -- | -------------------------------------- | ----------------------------- |
| s   | String | 是  | 标的代码                                   | `00285.HK`                    |
| t   | Long   | 是  | 交易时间                                   | `1747382898892`               |
| a   | Array  | 是  | 买盘(第一个数组表示价格 第二个数组表示成交股数，用下标对应 这里表示五档) | `[[1,2,3,4,5],[4,5,6,7,8,9]]` |
| b   | Array  | 是  | 卖盘(第一个数组表示价格 第二个数组表示成交股数，用下标对应 这里表示五档) | `[[1,2,3,4,5],[4,5,6,7,8,9]]` |

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "REST API"
  },
  "servers": [
    {
      "url": "https://data.infoway.io"
    }
  ],
  "paths": {
    "/stock/batch_depth/{codes}": {
      "get": {
        "description": "",
        "operationId": "get_stockbatch_depth{codes}",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "examples": {
                  "New Example": {
                    "summary": "New Example",
                    "value": {
                      "ret": 200,
                      "msg": "success",
                      "traceId": "972c7bdd-a151-4a13-b4a1-a24a30c65783",
                      "data": [
                        {
                          "s": "00285.HK",
                          "t": 1747382976831,
                          "a": [
                            [
                              "34.650",
                              "34.700",
                              "34.750",
                              "34.800",
                              "34.850",
                              "34.900",
                              "34.950",
                              "35.000",
                              "35.050",
                              "35.100"
                            ],
                            [
                              "44000",
                              "44500",
                              "225500",
                              "124000",
                              "147500",
                              "135500",
                              "65000",
                              "111000",
                              "39500",
                              "124500"
                            ]
                          ],
                          "b": [
                            [
                              "34.600",
                              "34.550",
                              "34.500",
                              "34.450",
                              "34.400",
                              "34.350",
                              "34.300",
                              "34.250",
                              "34.200",
                              "34.150"
                            ],
                            [
                              "109500",
                              "39500",
                              "130500",
                              "89000",
                              "144000",
                              "246500",
                              "231500",
                              "83000",
                              "224000",
                              "22000"
                            ]
                          ]
                        },
                        {
                          "s": "TSLA.US",
                          "t": 1746955123066,
                          "a": null,
                          "b": null
                        },
                        {
                          "s": "002594.SZ",
                          "t": 1747378802012,
                          "a": [
                            [
                              "389.17",
                              "389.45",
                              "389.50",
                              "389.57",
                              "389.69"
                            ],
                            [
                              "60",
                              "6",
                              "1",
                              "1",
                              "8"
                            ]
                          ],
                          "b": [
                            [
                              "389.16",
                              "389.09",
                              "389.05",
                              "389.02",
                              "389.01"
                            ],
                            [
                              "6",
                              "1",
                              "1",
                              "1",
                              "10"
                            ]
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "codes",
            "in": "path",
            "required": true,
            "description": "标的列表，多个用,间隔",
            "schema": {
              "type": "string",
              "default": "002594.SZ,00285.HK,TSLA.US,AUDCAD,HK50,XNIUSD"
            }
          }
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "apiKey"
      }
    }
  }
}
```