Skip to Content

Trading Stats

Get trade statistics showing price distribution by volume for a security.

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

Parameters

SDK method parameters.

NameTypeRequiredDescription
symbolstringYESSecurity symbol, e.g. 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
200SuccessTradeStatsResponse
400Bad requestNone

Schemas

TradeStatsResponse

NameTypeRequiredDescription
statisticsobjecttrueAggregate trade statistics
statistics.avgpricestringfalseAverage trade price
statistics.buystringfalseTotal buy volume
statistics.sellstringfalseTotal sell volume
statistics.neutralstringfalseTotal neutral volume
statistics.total_amountstringfalseTotal traded amount
statistics.trades_countstringfalseTotal trade count
statistics.preclosestringfalsePrevious close price
statistics.timestampstringfalseStatistics timestamp
statistics.trade_datestring[]falseTrading dates included
tradesobject[]falsePrice-level trade distribution
∟ pricestringtruePrice level
∟ buy_amountstringfalseBuy amount at this price
∟ sell_amountstringfalseSell amount at this price
∟ neutral_amountstringfalseNeutral amount at this price