Fundamental

Trading Stats

GEThttps://openapi.longbridge.com/v1/quote/trades-statistics

Authorization

Signed mode: every request is signed with your App Key/Secret. Header set:

NameTypeRequiredDescription
Authorizationstring · headerRequiredThe account Access Token from the OpenAPI dashboard — passed as the raw token (no Bearer prefix) and included in the signature calculation.
X-Api-Keystring · headerRequiredYour App Key.
X-Timestampstring · headerRequiredRequest timestamp in seconds (Unix epoch).
X-Api-Signaturestring · headerRequiredHMAC-SHA256 signature. Format: HMAC-SHA256 SignedHeaders=authorization;x-api-key;x-timestamp, Signature=.

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

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

Request

Query parameters

NameTypeRequiredDescription
symbolstringRequiredSecurity symbol, e.g. `700.HK`

Response

Response properties

NameTypeRequiredDescription
tradesobject[]OptionalPrice-level trade distribution
└ pricestringOptionalPrice level
└ buy_amountstringOptionalBuy amount at this price
└ sell_amountstringOptionalSell amount at this price
└ neutral_amountstringOptionalNeutral amount at this price
statisticsobjectOptionalAggregate trade statistics
└ avgpricestringOptionalAverage price.
└ trades_countstringOptionalNumber of trades.
└ total_amountstringOptionalTotal market turnover.
└ buystringOptionalTop buying brokers
└ sellstringOptionalTop selling brokers
└ neutralstringOptionalNeutral value/count.
└ timestampstringOptionalEvent time (Unix seconds as string)
└ preclosestringOptionalPrevious close price.
└ trade_datearrayOptionalNext projected trade date (YYYY-MM-DD)

Response JSON example

{
  "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"
      }
    ]
  }
}

Error code

See the Error Codes page for the full list of error codes.