89 const std::string* date,
Definition: config.hpp:16
Market data context.
Definition: market_context.hpp:37
MarketContext(const lb_market_context_t *ctx)
void trade_stats(const std::string &symbol, AsyncCallback< MarketContext, TradeStatsResponse > callback) const
Get trade statistics.
void ah_premium_intraday(const std::string &symbol, AsyncCallback< MarketContext, AhPremiumIntraday > callback) const
Get A/H premium intraday.
void rank_categories(AsyncCallback< MarketContext, std::string > callback) const
Get all available rank category keys and labels (raw JSON string)
void constituent(const std::string &symbol, AsyncCallback< MarketContext, IndexConstituents > callback) const
Get index constituents.
void broker_holding(const std::string &symbol, BrokerHoldingPeriod period, AsyncCallback< MarketContext, BrokerHoldingTop > callback) const
Get top broker holdings.
void broker_holding_detail(const std::string &symbol, AsyncCallback< MarketContext, BrokerHoldingDetail > callback) const
Get full broker holding details.
static MarketContext create(const Config &config)
void rank_list(const std::string &key, bool need_article, AsyncCallback< MarketContext, RankListResponse > callback) const
Get a ranked list of securities for the given category key.
MarketContext & operator=(const MarketContext &ctx)
MarketContext(MarketContext &&ctx)
MarketContext(const MarketContext &ctx)
void anomaly(const std::string &market, AsyncCallback< MarketContext, AnomalyResponse > callback) const
Get market anomalies.
void top_movers(const std::vector< std::string > &markets, uint32_t sort, const std::string *date, uint32_t limit, AsyncCallback< MarketContext, TopMoversResponse > callback) const
Get top movers (stocks with unusual price movements) across one or more markets.
void market_status(AsyncCallback< MarketContext, MarketStatusResponse > callback) const
Get market trading status.
void ah_premium(const std::string &symbol, AhPremiumPeriod period, uint32_t count, AsyncCallback< MarketContext, AhPremiumKlines > callback) const
Get A/H premium K-lines.
void broker_holding_daily(const std::string &symbol, const std::string &broker_id, AsyncCallback< MarketContext, BrokerHoldingDailyHistory > callback) const
Get daily broker holding history.
struct lb_market_context_t lb_market_context_t
Definition: market_context.hpp:10
AhPremiumPeriod
Definition: market_context.hpp:23
BrokerHoldingPeriod
Definition: market_context.hpp:16
Definition: alert_context.hpp:9
std::function< void(AsyncResult< Ctx, T >)> AsyncCallback
Definition: async_result.hpp:48