成交統計
獲取指定證券的成交統計數據,展示成交量的價格分布。
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 | 否 | 該價位中性成交額 |

