Quote
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
| Name | Type | Required | Description |
|---|---|---|---|
symbol | string | Optional | Security code, for example: AAPL.US |
sequence | int64 | Optional | Sequence number |
last_done | string | Optional | Latest price |
open | string | Optional | Open |
high | string | Optional | High |
low | string | Optional | Low |
timestamp | int64 | Optional | Time of latest price |
volume | int64 | Optional | Volume |
turnover | string | Optional | Turnover |
trade_status | int32 | Optional | Security trading status, see TradeStatus |
trade_session | int32 | Optional | Trade session, see TradeSession |
current_volume | int32 | Optional | Increase volume between pushes |
current_turnover | string | Optional | Increase turnover between pushes |
tag | int32 | Optional | Price 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
}