Longbridge OpenAPI C++ SDK
Public Member Functions | Static Public Member Functions | List of all members
longbridge::fundamental::FundamentalContext Class Reference

Fundamental data context. More...

#include <fundamental_context.hpp>

Public Member Functions

 FundamentalContext ()
 
 FundamentalContext (const lb_fundamental_context_t *ctx)
 
 FundamentalContext (const FundamentalContext &ctx)
 
 FundamentalContext (FundamentalContext &&ctx)
 
 ~FundamentalContext ()
 
FundamentalContextoperator= (const FundamentalContext &ctx)
 
void financial_report (const std::string &symbol, FinancialReportKind kind, std::optional< FinancialReportPeriod > period, AsyncCallback< FundamentalContext, FinancialReports > callback) const
 Get financial reports — list_json is a JSON string. More...
 
void institution_rating (const std::string &symbol, AsyncCallback< FundamentalContext, InstitutionRating > callback) const
 Get analyst ratings. More...
 
void institution_rating_detail (const std::string &symbol, AsyncCallback< FundamentalContext, InstitutionRatingDetail > callback) const
 Get historical analyst rating details. More...
 
void dividend (const std::string &symbol, AsyncCallback< FundamentalContext, DividendList > callback) const
 Get dividend history. More...
 
void dividend_detail (const std::string &symbol, AsyncCallback< FundamentalContext, DividendList > callback) const
 Get detailed dividend information. More...
 
void forecast_eps (const std::string &symbol, AsyncCallback< FundamentalContext, ForecastEps > callback) const
 Get EPS forecasts. More...
 
void valuation (const std::string &symbol, AsyncCallback< FundamentalContext, ValuationData > callback) const
 Get valuation metrics. More...
 
void valuation_history (const std::string &symbol, AsyncCallback< FundamentalContext, ValuationHistoryResponse > callback) const
 Get historical valuation. More...
 
void company (const std::string &symbol, AsyncCallback< FundamentalContext, CompanyOverview > callback) const
 Get company overview. More...
 
void shareholder (const std::string &symbol, AsyncCallback< FundamentalContext, ShareholderList > callback) const
 Get major shareholders. More...
 
void fund_holder (const std::string &symbol, AsyncCallback< FundamentalContext, FundHolders > callback) const
 Get fund and ETF holders. More...
 
void corp_action (const std::string &symbol, AsyncCallback< FundamentalContext, CorpActions > callback) const
 Get corporate actions. More...
 
void invest_relation (const std::string &symbol, AsyncCallback< FundamentalContext, InvestRelations > callback) const
 Get investor relations data. More...
 
void operating (const std::string &symbol, AsyncCallback< FundamentalContext, OperatingList > callback) const
 Get operating metrics. More...
 
void consensus (const std::string &symbol, AsyncCallback< FundamentalContext, FinancialConsensus > callback) const
 Get consensus estimates. More...
 
void industry_valuation (const std::string &symbol, AsyncCallback< FundamentalContext, IndustryValuationList > callback) const
 Get industry valuation. More...
 
void industry_valuation_dist (const std::string &symbol, AsyncCallback< FundamentalContext, IndustryValuationDist > callback) const
 Get industry valuation distribution. More...
 
void executive (const std::string &symbol, AsyncCallback< FundamentalContext, ExecutiveList > callback) const
 Get executive info. More...
 
void buyback (const std::string &symbol, AsyncCallback< FundamentalContext, BuybackData > callback) const
 Get buyback data. More...
 
void ratings (const std::string &symbol, AsyncCallback< FundamentalContext, StockRatings > callback) const
 Get stock ratings. More...
 
void business_segments (const std::string &symbol, AsyncCallback< FundamentalContext, BusinessSegments > callback) const
 Get latest business segment breakdown. More...
 
void business_segments_history (const std::string &symbol, const char *report, const char *cate, AsyncCallback< FundamentalContext, BusinessSegmentsHistory > callback) const
 Get historical business segment breakdowns (pass nullptr for report/cate to omit) More...
 
void institution_rating_views (const std::string &symbol, AsyncCallback< FundamentalContext, InstitutionRatingViews > callback) const
 Get historical institutional rating view time-series. More...
 
void industry_rank (const std::string &market, const std::string &indicator, const std::string &sort_type, uint32_t limit, AsyncCallback< FundamentalContext, IndustryRankResponse > callback) const
 Get industry rank list for a market. More...
 
void industry_peers (const std::string &counter_id, const std::string &market, const char *industry_id, AsyncCallback< FundamentalContext, IndustryPeersResponse > callback) const
 Get industry peer chain (pass nullptr for industry_id to omit) More...
 
void financial_report_snapshot (const std::string &symbol, const char *report, int32_t fiscal_year, const char *fiscal_period, AsyncCallback< FundamentalContext, FinancialReportSnapshot > callback) const
 Get financial report snapshot (pass nullptr/0 for optional params) More...
 
void shareholder_top (const std::string &symbol, AsyncCallback< FundamentalContext, std::string > callback) const
 Get ranked list of top shareholders (raw JSON string) More...
 
void shareholder_detail (const std::string &symbol, int64_t object_id, AsyncCallback< FundamentalContext, std::string > callback) const
 Get holding history and detail for one shareholder (raw JSON string) More...
 
void valuation_comparison (const std::string &symbol, const std::string &currency, const std::vector< std::string > *comparison_symbols, AsyncCallback< FundamentalContext, ValuationComparisonResponse > callback) const
 
void etf_asset_allocation (const std::string &symbol, AsyncCallback< FundamentalContext, AssetAllocationResponse > callback) const
 Get ETF asset allocation (holdings / regional / asset class / industry) More...
 

Static Public Member Functions

static FundamentalContext create (const Config &config)
 

Detailed Description

Fundamental data context.

Constructor & Destructor Documentation

◆ FundamentalContext() [1/4]

longbridge::fundamental::FundamentalContext::FundamentalContext ( )

◆ FundamentalContext() [2/4]

longbridge::fundamental::FundamentalContext::FundamentalContext ( const lb_fundamental_context_t ctx)

◆ FundamentalContext() [3/4]

longbridge::fundamental::FundamentalContext::FundamentalContext ( const FundamentalContext ctx)

◆ FundamentalContext() [4/4]

longbridge::fundamental::FundamentalContext::FundamentalContext ( FundamentalContext &&  ctx)

◆ ~FundamentalContext()

longbridge::fundamental::FundamentalContext::~FundamentalContext ( )

Member Function Documentation

◆ business_segments()

void longbridge::fundamental::FundamentalContext::business_segments ( const std::string &  symbol,
AsyncCallback< FundamentalContext, BusinessSegments callback 
) const

Get latest business segment breakdown.

◆ business_segments_history()

void longbridge::fundamental::FundamentalContext::business_segments_history ( const std::string &  symbol,
const char *  report,
const char *  cate,
AsyncCallback< FundamentalContext, BusinessSegmentsHistory callback 
) const

Get historical business segment breakdowns (pass nullptr for report/cate to omit)

◆ buyback()

void longbridge::fundamental::FundamentalContext::buyback ( const std::string &  symbol,
AsyncCallback< FundamentalContext, BuybackData callback 
) const

Get buyback data.

◆ company()

void longbridge::fundamental::FundamentalContext::company ( const std::string &  symbol,
AsyncCallback< FundamentalContext, CompanyOverview callback 
) const

Get company overview.

◆ consensus()

void longbridge::fundamental::FundamentalContext::consensus ( const std::string &  symbol,
AsyncCallback< FundamentalContext, FinancialConsensus callback 
) const

Get consensus estimates.

◆ corp_action()

void longbridge::fundamental::FundamentalContext::corp_action ( const std::string &  symbol,
AsyncCallback< FundamentalContext, CorpActions callback 
) const

Get corporate actions.

◆ create()

static FundamentalContext longbridge::fundamental::FundamentalContext::create ( const Config config)
static

◆ dividend()

void longbridge::fundamental::FundamentalContext::dividend ( const std::string &  symbol,
AsyncCallback< FundamentalContext, DividendList callback 
) const

Get dividend history.

◆ dividend_detail()

void longbridge::fundamental::FundamentalContext::dividend_detail ( const std::string &  symbol,
AsyncCallback< FundamentalContext, DividendList callback 
) const

Get detailed dividend information.

◆ etf_asset_allocation()

void longbridge::fundamental::FundamentalContext::etf_asset_allocation ( const std::string &  symbol,
AsyncCallback< FundamentalContext, AssetAllocationResponse callback 
) const

Get ETF asset allocation (holdings / regional / asset class / industry)

◆ executive()

void longbridge::fundamental::FundamentalContext::executive ( const std::string &  symbol,
AsyncCallback< FundamentalContext, ExecutiveList callback 
) const

Get executive info.

◆ financial_report()

void longbridge::fundamental::FundamentalContext::financial_report ( const std::string &  symbol,
FinancialReportKind  kind,
std::optional< FinancialReportPeriod period,
AsyncCallback< FundamentalContext, FinancialReports callback 
) const

Get financial reports — list_json is a JSON string.

◆ financial_report_snapshot()

void longbridge::fundamental::FundamentalContext::financial_report_snapshot ( const std::string &  symbol,
const char *  report,
int32_t  fiscal_year,
const char *  fiscal_period,
AsyncCallback< FundamentalContext, FinancialReportSnapshot callback 
) const

Get financial report snapshot (pass nullptr/0 for optional params)

◆ forecast_eps()

void longbridge::fundamental::FundamentalContext::forecast_eps ( const std::string &  symbol,
AsyncCallback< FundamentalContext, ForecastEps callback 
) const

Get EPS forecasts.

◆ fund_holder()

void longbridge::fundamental::FundamentalContext::fund_holder ( const std::string &  symbol,
AsyncCallback< FundamentalContext, FundHolders callback 
) const

Get fund and ETF holders.

◆ industry_peers()

void longbridge::fundamental::FundamentalContext::industry_peers ( const std::string &  counter_id,
const std::string &  market,
const char *  industry_id,
AsyncCallback< FundamentalContext, IndustryPeersResponse callback 
) const

Get industry peer chain (pass nullptr for industry_id to omit)

◆ industry_rank()

void longbridge::fundamental::FundamentalContext::industry_rank ( const std::string &  market,
const std::string &  indicator,
const std::string &  sort_type,
uint32_t  limit,
AsyncCallback< FundamentalContext, IndustryRankResponse callback 
) const

Get industry rank list for a market.

◆ industry_valuation()

void longbridge::fundamental::FundamentalContext::industry_valuation ( const std::string &  symbol,
AsyncCallback< FundamentalContext, IndustryValuationList callback 
) const

Get industry valuation.

◆ industry_valuation_dist()

void longbridge::fundamental::FundamentalContext::industry_valuation_dist ( const std::string &  symbol,
AsyncCallback< FundamentalContext, IndustryValuationDist callback 
) const

Get industry valuation distribution.

◆ institution_rating()

void longbridge::fundamental::FundamentalContext::institution_rating ( const std::string &  symbol,
AsyncCallback< FundamentalContext, InstitutionRating callback 
) const

Get analyst ratings.

◆ institution_rating_detail()

void longbridge::fundamental::FundamentalContext::institution_rating_detail ( const std::string &  symbol,
AsyncCallback< FundamentalContext, InstitutionRatingDetail callback 
) const

Get historical analyst rating details.

◆ institution_rating_views()

void longbridge::fundamental::FundamentalContext::institution_rating_views ( const std::string &  symbol,
AsyncCallback< FundamentalContext, InstitutionRatingViews callback 
) const

Get historical institutional rating view time-series.

◆ invest_relation()

void longbridge::fundamental::FundamentalContext::invest_relation ( const std::string &  symbol,
AsyncCallback< FundamentalContext, InvestRelations callback 
) const

Get investor relations data.

◆ operating()

void longbridge::fundamental::FundamentalContext::operating ( const std::string &  symbol,
AsyncCallback< FundamentalContext, OperatingList callback 
) const

Get operating metrics.

◆ operator=()

FundamentalContext& longbridge::fundamental::FundamentalContext::operator= ( const FundamentalContext ctx)

◆ ratings()

void longbridge::fundamental::FundamentalContext::ratings ( const std::string &  symbol,
AsyncCallback< FundamentalContext, StockRatings callback 
) const

Get stock ratings.

◆ shareholder()

void longbridge::fundamental::FundamentalContext::shareholder ( const std::string &  symbol,
AsyncCallback< FundamentalContext, ShareholderList callback 
) const

Get major shareholders.

◆ shareholder_detail()

void longbridge::fundamental::FundamentalContext::shareholder_detail ( const std::string &  symbol,
int64_t  object_id,
AsyncCallback< FundamentalContext, std::string >  callback 
) const

Get holding history and detail for one shareholder (raw JSON string)

◆ shareholder_top()

void longbridge::fundamental::FundamentalContext::shareholder_top ( const std::string &  symbol,
AsyncCallback< FundamentalContext, std::string >  callback 
) const

Get ranked list of top shareholders (raw JSON string)

◆ valuation()

void longbridge::fundamental::FundamentalContext::valuation ( const std::string &  symbol,
AsyncCallback< FundamentalContext, ValuationData callback 
) const

Get valuation metrics.

◆ valuation_comparison()

void longbridge::fundamental::FundamentalContext::valuation_comparison ( const std::string &  symbol,
const std::string &  currency,
const std::vector< std::string > *  comparison_symbols,
AsyncCallback< FundamentalContext, ValuationComparisonResponse callback 
) const

Get valuation comparison. Pass nullptr for comparison_symbols to skip peer comparison.

◆ valuation_history()

void longbridge::fundamental::FundamentalContext::valuation_history ( const std::string &  symbol,
AsyncCallback< FundamentalContext, ValuationHistoryResponse callback 
) const

Get historical valuation.


The documentation for this class was generated from the following file: