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

ParameterTypeRequiredDescription
symbolsconst value &YesSymbol code array, max 50
langutility::string_tNoLanguage, default empty

Return

web::json::value JSON object

Response Fields

FieldTypeDescription
symbolstringSecurity symbol
ask_pricefloatBest ask price
ask_sizeintBest ask size
bid_pricefloatBest bid price
bid_sizeintBest bid size
pre_closefloatPrevious close price
latest_pricefloatLatest price
latest_timelongLatest trade time (millisecond timestamp)
volumelongVolume
openfloatOpen price
highfloatHigh price
lowfloatLow price
statusstringTrading 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

Did this page help you?