成交统计
获取指定证券的成交统计数据,展示成交量的价格分布。
SDK Links
Parameters
SDK 方法参数。
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | 是 | 证券代码,例如 700.HK |
Request Example
Response
Response Example
json
{
"code": 0,
"message": "success",
"data": {
"statistics": {
"avgprice": "210.50",
"buy": "45000000",
"sell": "38000000",
"neutral": "12000000",
"total_amount": "95000000",
"trades_count": "125000",
"preclose": "208.20",
"timestamp": "1778198400",
"trade_date": [
"2026-05-13"
]
},
"trades": [
{
"price": "210.00",
"buy_amount": "5000000",
"sell_amount": "4000000",
"neutral_amount": "1000000"
}
]
}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | 成功 | TradeStatsResponse |
| 400 | 请求错误 | None |
Schemas
TradeStatsResponse
| Name | Type | Required | Description |
|---|---|---|---|
| statistics | object | 是 | 成交统计汇总 |
| statistics.avgprice | string | 否 | 平均成交价 |
| statistics.buy | string | 否 | 总买入成交量 |
| statistics.sell | string | 否 | 总卖出成交量 |
| statistics.neutral | string | 否 | 总中性成交量 |
| statistics.total_amount | string | 否 | 总成交额 |
| statistics.trades_count | string | 否 | 总成交笔数 |
| statistics.preclose | string | 否 | 前收盘价 |
| statistics.timestamp | string | 否 | 统计时间戳 |
| statistics.trade_date | string[] | 否 | 涵盖的交易日期 |
| trades | object[] | 否 | 按价位的成交分布, |
| ∟ price | string | 是 | 价位 |
| ∟ buy_amount | string | 否 | 该价位买入成交额 |
| ∟ sell_amount | string | 否 | 该价位卖出成交额 |
| ∟ neutral_amount | string | 否 | 该价位中性成交额 |

