---
updatedAt: 2025-06-26T13:58:31.000Z
agentTools:
  projectIndex: https://infoway.readme.io/llms.txt
---

# 获取标的实时成交明细

获取标的实时成交明细

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

## 入参说明

| 参数名   | 类型     | 必填 | 描述                     | 示例值                  |
| ----- | ------ | -- | ---------------------- | -------------------- |
| codes | String | 是  | 标的列表，多个用,间隔，最大支持100个标的 | `USDCNY,XAUAUD,CN50` |

## 出参说明

| 字段名 | 类型     | 必填 | 描述   | 示例值                         |
| --- | ------ | -- | ---- | --------------------------- |
| s   | String | 是  | 标的名称 | `USDCNY`                    |
| t   | Long   | 是  | 交易时间 | `1747382898892`             |
| p   | String | 是  | 价格   | `34.650`                    |
| v   | String | 是  | 成交量  | `439000`                    |
| vw  | String | 是  | 成交额  | `15211350.000`              |
| td  | Int    | 是  | 交易方向 | `[0,1,2]`0为默认值，1为Buy，2为SELL |

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "REST API"
  },
  "servers": [
    {
      "url": "https://data.infoway.io"
    }
  ],
  "paths": {
    "/common/batch_trade/{codes}": {
      "get": {
        "description": "",
        "operationId": "get_commonbatch_trade{codes}",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "examples": {
                  "New Example": {
                    "summary": "New Example",
                    "value": {
                      "ret": 200,
                      "msg": "success",
                      "traceId": "27bdafb1-c735-4499-aad1-553820284895",
                      "data": [
                        {
                          "s": "XAUAUD",
                          "t": 1750177346999,
                          "p": "5188.211",
                          "v": "3.0",
                          "vw": "15564.6330",
                          "td": 0
                        },
                        {
                          "s": "USDCNY",
                          "t": 1750175583999,
                          "p": "7.184",
                          "v": "1.0",
                          "vw": "7.1840",
                          "td": 0
                        },
                        {
                          "s": "CN50",
                          "t": 1750177343999,
                          "p": "13441.17",
                          "v": "1.0",
                          "vw": "13441.170",
                          "td": 0
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "codes",
            "in": "path",
            "required": true,
            "description": "标的列表，多个用,间隔，最大支持100个标的",
            "schema": {
              "type": "string",
              "default": "USDCNY,XAUAUD,CN50"
            }
          }
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "apiKey"
      }
    }
  }
}
```