Get Overnight Quotes
Get Overnight Stock Quotes
value QuoteClient::get_quote_overnight(const value &symbols, utility::string_t lang)
Description
Get stock overnight trading quotes
Rate Limit
60 requests/min
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbols | const value & | Yes | Symbol code array, max 50 |
| lang | utility::string_t | No | Language, default empty |
Return
web::json::value JSON object
Response Fields
| Field | Type | Description |
|---|---|---|
| symbol | string | Security symbol |
| ask_price | float | Best ask price |
| ask_size | int | Best ask size |
| bid_price | float | Best bid price |
| bid_size | int | Best bid size |
| pre_close | float | Previous close price |
| latest_price | float | Latest price |
| latest_time | long | Latest trade time (millisecond timestamp) |
| volume | long | Volume |
| open | float | Open price |
| high | float | High price |
| low | float | Low price |
| status | string | Trading status |
Example
#include "tigerapi/quote_client.h"
#include "tigerapi/client_config.h"
using namespace TIGER_API;
using namespace web::json;
ClientConfig config(false, U("your_config_directory_path"));
QuoteClient quote_client(config);
value symbols = value::array();
symbols[0] = value::string(U("AAPL"));
value result = quote_client.get_quote_overnight(symbols);
ucout << result.serialize() << std::endl;Response example
[
{
"symbol": "AAPL",
"ask_price": 231.50,
"ask_size": 200,
"bid_price": 231.45,
"bid_size": 100,
"pre_close": 230.89,
"latest_price": 231.48,
"latest_time": 1785600000000,
"volume": 15820,
"open": 231.00,
"high": 231.65,
"low": 230.80,
"status": "OVERNIGHT_TRADING"
}
]Overnight Data Subscription
Overnight minute bars and full-tick data reuse the standard subscription methods (subscribe_kline / subscribe_trade_tick). No additional method calls are needed. Once overnight permission is granted, existing subscriptions will deliver overnight session data automatically.
Permission requirements
- Minute bar subscription: contact your account manager to enable
- Overnight data: requires separate overnight permission activation
Updated about 13 hours ago
Did this page help you?
