Quote

Quote

WSPush · cmd 101

Real-time quote push of the subscribed security. In the pushed data structure, only the fields that have changed will be filled with data.

message PushQuote {
  string symbol = 1;
  int64 sequence = 2;
  string last_done = 3;
  string open = 4;
  string high = 5;
  string low = 6;
  int64 timestamp = 7;
  int64 volume = 8;
  string turnover = 9;
  TradeStatus trade_status = 10;
  TradeSession trade_session = 11;
}
Quote Permission RequiredFree
  • US stocks: US LV1 included free by default, covering pre-market, regular, after-hours, and overnight sessions. To receive overnight data, enable it via LONGBRIDGE_ENABLE_OVERNIGHT=true (see Q6 & Q7 in the Broker FAQ).
  • HK stocks: LV1 real-time quotes included by default.
  • US options: no permission by default — purchase "OPRA US Options Quotes (OpenAPI)" in the Quote Store.

Push fields

NameTypeRequiredDescription
symbolstringOptionalSecurity code, for example: AAPL.US
sequenceint64OptionalSequence number
last_donestringOptionalLatest price
openstringOptionalOpen
highstringOptionalHigh
lowstringOptionalLow
timestampint64OptionalTime of latest price
volumeint64OptionalVolume
turnoverstringOptionalTurnover
trade_statusint32OptionalSecurity trading status, see TradeStatus
trade_sessionint32OptionalTrade session, see TradeSession
current_volumeint32OptionalIncrease volume between pushes
current_turnoverstringOptionalIncrease turnover between pushes
tagint32OptionalPrice tag: 0 real-time quote, 1 revised data after market close

Response JSON example

{
  "symbol": "AAPL.US",
  "sequence": 160808750000000,
  "last_done": "156.570",
  "open": "155.910",
  "high": "159.790",
  "low": "155.380",
  "timestamp": 1651089600,
  "volume": 88063191,
  "turnover": "13865092584.000",
  "trade_status": 0,
  "trade_session": 0
}