|
Longbridge OpenAPI C++ SDK
|
Fund (mutual fund) channel context. More...
#include <fund_context.hpp>
Public Member Functions | |
| FundContext () | |
| FundContext (const lb_fund_context_t *ctx) | |
| FundContext (const FundContext &ctx) | |
| FundContext (FundContext &&ctx) | |
| ~FundContext () | |
| FundContext & | operator= (const FundContext &ctx) |
| void | hot_funds (AsyncCallback< FundContext, std::vector< HotFund >> callback) const |
| Get the hot-selling fund list. More... | |
| void | funds (const std::optional< GetFundsOptions > &opts, AsyncCallback< FundContext, std::vector< FundBrief >> callback) const |
| Get the fund list. More... | |
| void | filters (AsyncCallback< FundContext, FundFilters > callback) const |
| Get the fund list filter options. More... | |
| void | detail (const std::string &counter_id, AsyncCallback< FundContext, FundDetail > callback) const |
| Get fund detail. More... | |
| void | analysis (const std::string &counter_id, const std::optional< GetFundAnalysisOptions > &opts, AsyncCallback< FundContext, FundAnalysis > callback) const |
| Get fund analysis (level 1) More... | |
| void | analysis_detail (const std::string &counter_id, const std::optional< GetFundAnalysisOptions > &opts, AsyncCallback< FundContext, FundAnalysisDetail > callback) const |
| Get fund analysis detail (level 2) More... | |
| void | trend (const std::string &counter_id, const std::optional< GetFundAnalysisOptions > &opts, AsyncCallback< FundContext, FundTrend > callback) const |
| Get fund trend chart. More... | |
| void | annual_returns (const std::string &counter_id, const std::optional< FundPageOptions > &opts, AsyncCallback< FundContext, std::vector< FundAnnualReturn >> callback) const |
| Get fund annual returns. More... | |
| void | quarterly_returns (const std::string &counter_id, const std::optional< FundPageOptions > &opts, AsyncCallback< FundContext, std::vector< FundQuarterlyReturn >> callback) const |
| Get fund quarterly returns. More... | |
| void | performance (const std::string &counter_id, AsyncCallback< FundContext, std::vector< FundPerformance >> callback) const |
| Get fund performance figures. More... | |
| void | performance_comparison (const std::string &counter_id, const std::optional< GetFundAnalysisOptions > &opts, AsyncCallback< FundContext, FundPerformanceComparison > callback) const |
| Get fund performance comparison. More... | |
| void | nav (const std::string &counter_id, AsyncCallback< FundContext, std::vector< FundNavValue >> callback) const |
| Get fund latest net value. More... | |
| void | nav_history (const std::string &counter_id, const std::optional< FundPageOptions > &opts, AsyncCallback< FundContext, std::vector< FundNavValue >> callback) const |
| Get fund historical net value (paged) More... | |
| void | nav_range (const std::string &counter_id, const std::optional< FundNavRangeOptions > &opts, AsyncCallback< FundContext, std::vector< FundNavValue >> callback) const |
| Get fund historical net value by relative time range. More... | |
| void | holdings (const std::string &counter_id, const std::optional< GetFundHoldingsOptions > &opts, AsyncCallback< FundContext, FundHoldings > callback) const |
| Get a fund's top-10 holdings. More... | |
| void | stock_holdings (const std::string &counter_id, const std::optional< GetFundStockHoldingsOptions > &opts, AsyncCallback< FundContext, std::vector< FundStockHolding >> callback) const |
| Get the stocks held by a fund (reverse lookup) More... | |
| void | positions (const std::optional< GetFundPositionsOptions > &opts, AsyncCallback< FundContext, FundPositions > callback) const |
| Get the user's fund positions overview. More... | |
| void | position (const std::string &counter_id, const std::optional< GetFundPositionOptions > &opts, AsyncCallback< FundContext, FundPositionDetail > callback) const |
| Get the user's single fund position detail. More... | |
| void | position_performance (const std::string &counter_id, AsyncCallback< FundContext, std::vector< FundPositionPerformance >> callback) const |
| Get the performance figures of a held fund. More... | |
| void | position_profits (const std::string &counter_id, const std::optional< GetFundPositionProfitsOptions > &opts, AsyncCallback< FundContext, FundPositionProfits > callback) const |
| Get the cumulative-profit series of a held fund. More... | |
| void | position_nav (const std::string &counter_id, const std::optional< FundNavRangeOptions > &opts, AsyncCallback< FundContext, std::vector< FundPositionNav >> callback) const |
| Get the net-value history of a held fund. More... | |
| void | position_dividends (const std::string &counter_id, const std::optional< GetFundPositionDividendsOptions > &opts, AsyncCallback< FundContext, FundDividends > callback) const |
| Get the dividend records of a held fund. More... | |
| void | orders (const std::optional< GetFundOrdersOptions > &opts, AsyncCallback< FundContext, std::vector< FundOrder >> callback) const |
| Get the user's fund orders. More... | |
| void | order (int64_t order_id, AsyncCallback< FundContext, FundOrderDetail > callback) const |
| Get a fund order detail. More... | |
| void | transactions (const std::optional< GetFundTransactionsOptions > &opts, AsyncCallback< FundContext, std::vector< FundTransaction >> callback) const |
| Get the user's fund transactions (cash-flow records) More... | |
| void | validate_order (const ValidateFundOrderOptions &opts, AsyncCallback< FundContext, FundOrderValidation > callback) const |
| Validate a fund order before submitting. More... | |
| void | submit_order (const SubmitFundOrderOptions &opts, AsyncCallback< FundContext, FundOrderSubmitResponse > callback) const |
| Submit a fund order (buy / sell) More... | |
| void | cancel_order (int64_t order_id, AsyncCallback< FundContext, void > callback) const |
| Cancel (withdraw) a fund order. More... | |
Static Public Member Functions | |
| static FundContext | create (const Config &config) |
| Create a FundContext from a Config. More... | |
Fund (mutual fund) channel context.
| longbridge::fund::FundContext::FundContext | ( | ) |
| longbridge::fund::FundContext::FundContext | ( | const lb_fund_context_t * | ctx | ) |
| longbridge::fund::FundContext::FundContext | ( | const FundContext & | ctx | ) |
| longbridge::fund::FundContext::FundContext | ( | FundContext && | ctx | ) |
| longbridge::fund::FundContext::~FundContext | ( | ) |
| void longbridge::fund::FundContext::analysis | ( | const std::string & | counter_id, |
| const std::optional< GetFundAnalysisOptions > & | opts, | ||
| AsyncCallback< FundContext, FundAnalysis > | callback | ||
| ) | const |
Get fund analysis (level 1)
| void longbridge::fund::FundContext::analysis_detail | ( | const std::string & | counter_id, |
| const std::optional< GetFundAnalysisOptions > & | opts, | ||
| AsyncCallback< FundContext, FundAnalysisDetail > | callback | ||
| ) | const |
Get fund analysis detail (level 2)
| void longbridge::fund::FundContext::annual_returns | ( | const std::string & | counter_id, |
| const std::optional< FundPageOptions > & | opts, | ||
| AsyncCallback< FundContext, std::vector< FundAnnualReturn >> | callback | ||
| ) | const |
Get fund annual returns.
| void longbridge::fund::FundContext::cancel_order | ( | int64_t | order_id, |
| AsyncCallback< FundContext, void > | callback | ||
| ) | const |
Cancel (withdraw) a fund order.
|
static |
Create a FundContext from a Config.
| void longbridge::fund::FundContext::detail | ( | const std::string & | counter_id, |
| AsyncCallback< FundContext, FundDetail > | callback | ||
| ) | const |
Get fund detail.
| void longbridge::fund::FundContext::filters | ( | AsyncCallback< FundContext, FundFilters > | callback | ) | const |
Get the fund list filter options.
| void longbridge::fund::FundContext::funds | ( | const std::optional< GetFundsOptions > & | opts, |
| AsyncCallback< FundContext, std::vector< FundBrief >> | callback | ||
| ) | const |
Get the fund list.
| void longbridge::fund::FundContext::holdings | ( | const std::string & | counter_id, |
| const std::optional< GetFundHoldingsOptions > & | opts, | ||
| AsyncCallback< FundContext, FundHoldings > | callback | ||
| ) | const |
Get a fund's top-10 holdings.
| void longbridge::fund::FundContext::hot_funds | ( | AsyncCallback< FundContext, std::vector< HotFund >> | callback | ) | const |
Get the hot-selling fund list.
| void longbridge::fund::FundContext::nav | ( | const std::string & | counter_id, |
| AsyncCallback< FundContext, std::vector< FundNavValue >> | callback | ||
| ) | const |
Get fund latest net value.
| void longbridge::fund::FundContext::nav_history | ( | const std::string & | counter_id, |
| const std::optional< FundPageOptions > & | opts, | ||
| AsyncCallback< FundContext, std::vector< FundNavValue >> | callback | ||
| ) | const |
Get fund historical net value (paged)
| void longbridge::fund::FundContext::nav_range | ( | const std::string & | counter_id, |
| const std::optional< FundNavRangeOptions > & | opts, | ||
| AsyncCallback< FundContext, std::vector< FundNavValue >> | callback | ||
| ) | const |
Get fund historical net value by relative time range.
| FundContext& longbridge::fund::FundContext::operator= | ( | const FundContext & | ctx | ) |
| void longbridge::fund::FundContext::order | ( | int64_t | order_id, |
| AsyncCallback< FundContext, FundOrderDetail > | callback | ||
| ) | const |
Get a fund order detail.
| void longbridge::fund::FundContext::orders | ( | const std::optional< GetFundOrdersOptions > & | opts, |
| AsyncCallback< FundContext, std::vector< FundOrder >> | callback | ||
| ) | const |
Get the user's fund orders.
| void longbridge::fund::FundContext::performance | ( | const std::string & | counter_id, |
| AsyncCallback< FundContext, std::vector< FundPerformance >> | callback | ||
| ) | const |
Get fund performance figures.
| void longbridge::fund::FundContext::performance_comparison | ( | const std::string & | counter_id, |
| const std::optional< GetFundAnalysisOptions > & | opts, | ||
| AsyncCallback< FundContext, FundPerformanceComparison > | callback | ||
| ) | const |
Get fund performance comparison.
| void longbridge::fund::FundContext::position | ( | const std::string & | counter_id, |
| const std::optional< GetFundPositionOptions > & | opts, | ||
| AsyncCallback< FundContext, FundPositionDetail > | callback | ||
| ) | const |
Get the user's single fund position detail.
| void longbridge::fund::FundContext::position_dividends | ( | const std::string & | counter_id, |
| const std::optional< GetFundPositionDividendsOptions > & | opts, | ||
| AsyncCallback< FundContext, FundDividends > | callback | ||
| ) | const |
Get the dividend records of a held fund.
| void longbridge::fund::FundContext::position_nav | ( | const std::string & | counter_id, |
| const std::optional< FundNavRangeOptions > & | opts, | ||
| AsyncCallback< FundContext, std::vector< FundPositionNav >> | callback | ||
| ) | const |
Get the net-value history of a held fund.
| void longbridge::fund::FundContext::position_performance | ( | const std::string & | counter_id, |
| AsyncCallback< FundContext, std::vector< FundPositionPerformance >> | callback | ||
| ) | const |
Get the performance figures of a held fund.
| void longbridge::fund::FundContext::position_profits | ( | const std::string & | counter_id, |
| const std::optional< GetFundPositionProfitsOptions > & | opts, | ||
| AsyncCallback< FundContext, FundPositionProfits > | callback | ||
| ) | const |
Get the cumulative-profit series of a held fund.
| void longbridge::fund::FundContext::positions | ( | const std::optional< GetFundPositionsOptions > & | opts, |
| AsyncCallback< FundContext, FundPositions > | callback | ||
| ) | const |
Get the user's fund positions overview.
| void longbridge::fund::FundContext::quarterly_returns | ( | const std::string & | counter_id, |
| const std::optional< FundPageOptions > & | opts, | ||
| AsyncCallback< FundContext, std::vector< FundQuarterlyReturn >> | callback | ||
| ) | const |
Get fund quarterly returns.
| void longbridge::fund::FundContext::stock_holdings | ( | const std::string & | counter_id, |
| const std::optional< GetFundStockHoldingsOptions > & | opts, | ||
| AsyncCallback< FundContext, std::vector< FundStockHolding >> | callback | ||
| ) | const |
Get the stocks held by a fund (reverse lookup)
| void longbridge::fund::FundContext::submit_order | ( | const SubmitFundOrderOptions & | opts, |
| AsyncCallback< FundContext, FundOrderSubmitResponse > | callback | ||
| ) | const |
Submit a fund order (buy / sell)
| void longbridge::fund::FundContext::transactions | ( | const std::optional< GetFundTransactionsOptions > & | opts, |
| AsyncCallback< FundContext, std::vector< FundTransaction >> | callback | ||
| ) | const |
Get the user's fund transactions (cash-flow records)
| void longbridge::fund::FundContext::trend | ( | const std::string & | counter_id, |
| const std::optional< GetFundAnalysisOptions > & | opts, | ||
| AsyncCallback< FundContext, FundTrend > | callback | ||
| ) | const |
Get fund trend chart.
| void longbridge::fund::FundContext::validate_order | ( | const ValidateFundOrderOptions & | opts, |
| AsyncCallback< FundContext, FundOrderValidation > | callback | ||
| ) | const |
Validate a fund order before submitting.