|
Longbridge OpenAPI C++ SDK
|
Market data context. More...
#include <market_context.hpp>
Public Member Functions | |
| MarketContext () | |
| MarketContext (const lb_market_context_t *ctx) | |
| MarketContext (const MarketContext &ctx) | |
| MarketContext (MarketContext &&ctx) | |
| ~MarketContext () | |
| MarketContext & | operator= (const MarketContext &ctx) |
| void | market_status (AsyncCallback< MarketContext, MarketStatusResponse > callback) const |
| Get market trading status. More... | |
| void | broker_holding (const std::string &symbol, BrokerHoldingPeriod period, AsyncCallback< MarketContext, BrokerHoldingTop > callback) const |
| Get top broker holdings. More... | |
| void | broker_holding_detail (const std::string &symbol, AsyncCallback< MarketContext, BrokerHoldingDetail > callback) const |
| Get full broker holding details. More... | |
| void | broker_holding_daily (const std::string &symbol, const std::string &broker_id, AsyncCallback< MarketContext, BrokerHoldingDailyHistory > callback) const |
| Get daily broker holding history. More... | |
| void | ah_premium (const std::string &symbol, AhPremiumPeriod period, uint32_t count, AsyncCallback< MarketContext, AhPremiumKlines > callback) const |
| Get A/H premium K-lines. More... | |
| void | ah_premium_intraday (const std::string &symbol, AsyncCallback< MarketContext, AhPremiumIntraday > callback) const |
| Get A/H premium intraday. More... | |
| void | trade_stats (const std::string &symbol, AsyncCallback< MarketContext, TradeStatsResponse > callback) const |
| Get trade statistics. More... | |
| void | anomaly (const std::string &market, AsyncCallback< MarketContext, AnomalyResponse > callback) const |
| Get market anomalies. More... | |
| void | constituent (const std::string &symbol, AsyncCallback< MarketContext, IndexConstituents > callback) const |
| Get index constituents. More... | |
| 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. More... | |
| void | rank_categories (AsyncCallback< MarketContext, std::string > callback) const |
| Get all available rank category keys and labels (raw JSON string) More... | |
| 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. More... | |
Static Public Member Functions | |
| static MarketContext | create (const Config &config) |
Market data context.
| longbridge::market::MarketContext::MarketContext | ( | ) |
| longbridge::market::MarketContext::MarketContext | ( | const lb_market_context_t * | ctx | ) |
| longbridge::market::MarketContext::MarketContext | ( | const MarketContext & | ctx | ) |
| longbridge::market::MarketContext::MarketContext | ( | MarketContext && | ctx | ) |
| longbridge::market::MarketContext::~MarketContext | ( | ) |
| void longbridge::market::MarketContext::ah_premium | ( | const std::string & | symbol, |
| AhPremiumPeriod | period, | ||
| uint32_t | count, | ||
| AsyncCallback< MarketContext, AhPremiumKlines > | callback | ||
| ) | const |
Get A/H premium K-lines.
| void longbridge::market::MarketContext::ah_premium_intraday | ( | const std::string & | symbol, |
| AsyncCallback< MarketContext, AhPremiumIntraday > | callback | ||
| ) | const |
Get A/H premium intraday.
| void longbridge::market::MarketContext::anomaly | ( | const std::string & | market, |
| AsyncCallback< MarketContext, AnomalyResponse > | callback | ||
| ) | const |
Get market anomalies.
| void longbridge::market::MarketContext::broker_holding | ( | const std::string & | symbol, |
| BrokerHoldingPeriod | period, | ||
| AsyncCallback< MarketContext, BrokerHoldingTop > | callback | ||
| ) | const |
Get top broker holdings.
| void longbridge::market::MarketContext::broker_holding_daily | ( | const std::string & | symbol, |
| const std::string & | broker_id, | ||
| AsyncCallback< MarketContext, BrokerHoldingDailyHistory > | callback | ||
| ) | const |
Get daily broker holding history.
| void longbridge::market::MarketContext::broker_holding_detail | ( | const std::string & | symbol, |
| AsyncCallback< MarketContext, BrokerHoldingDetail > | callback | ||
| ) | const |
Get full broker holding details.
| void longbridge::market::MarketContext::constituent | ( | const std::string & | symbol, |
| AsyncCallback< MarketContext, IndexConstituents > | callback | ||
| ) | const |
Get index constituents.
|
static |
| void longbridge::market::MarketContext::market_status | ( | AsyncCallback< MarketContext, MarketStatusResponse > | callback | ) | const |
Get market trading status.
| MarketContext& longbridge::market::MarketContext::operator= | ( | const MarketContext & | ctx | ) |
| void longbridge::market::MarketContext::rank_categories | ( | AsyncCallback< MarketContext, std::string > | callback | ) | const |
Get all available rank category keys and labels (raw JSON string)
| void longbridge::market::MarketContext::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.
| void longbridge::market::MarketContext::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 longbridge::market::MarketContext::trade_stats | ( | const std::string & | symbol, |
| AsyncCallback< MarketContext, TradeStatsResponse > | callback | ||
| ) | const |
Get trade statistics.