跳转到内容

成交统计

获取指定证券的成交统计数据,展示成交量的价格分布。

CLI
longbridge trade-stats 700.HK
longbridge trade-stats TSLA.US

Parameters

SDK 方法参数。

NameTypeRequiredDescription
symbolstring证券代码,例如 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

StatusDescriptionSchema
200成功TradeStatsResponse
400请求错误None

Schemas

TradeStatsResponse

NameTypeRequiredDescription
statisticsobject成交统计汇总
statistics.avgpricestring平均成交价
statistics.buystring总买入成交量
statistics.sellstring总卖出成交量
statistics.neutralstring总中性成交量
statistics.total_amountstring总成交额
statistics.trades_countstring总成交笔数
statistics.preclosestring前收盘价
statistics.timestampstring统计时间戳
statistics.trade_datestring[]涵盖的交易日期
tradesobject[]按价位的成交分布,
∟ pricestring价位
∟ buy_amountstring该价位买入成交额
∟ sell_amountstring该价位卖出成交额
∟ neutral_amountstring该价位中性成交额