39 void funds(
const std::optional<GetFundsOptions>& opts,
46 void detail(
const std::string& counter_id,
51 const std::optional<GetFundAnalysisOptions>& opts,
56 const std::string& counter_id,
57 const std::optional<GetFundAnalysisOptions>& opts,
61 void trend(
const std::string& counter_id,
62 const std::optional<GetFundAnalysisOptions>& opts,
67 const std::string& counter_id,
68 const std::optional<FundPageOptions>& opts,
73 const std::string& counter_id,
74 const std::optional<FundPageOptions>& opts,
79 const std::string& counter_id,
84 const std::string& counter_id,
85 const std::optional<GetFundAnalysisOptions>& opts,
89 void nav(
const std::string& counter_id,
94 const std::string& counter_id,
95 const std::optional<FundPageOptions>& opts,
100 const std::string& counter_id,
101 const std::optional<FundNavRangeOptions>& opts,
106 const std::optional<GetFundHoldingsOptions>& opts,
111 const std::string& counter_id,
112 const std::optional<GetFundStockHoldingsOptions>& opts,
118 void positions(
const std::optional<GetFundPositionsOptions>& opts,
123 const std::optional<GetFundPositionOptions>& opts,
128 const std::string& counter_id,
134 const std::string& counter_id,
135 const std::optional<GetFundPositionProfitsOptions>& opts,
140 const std::string& counter_id,
141 const std::optional<FundNavRangeOptions>& opts,
146 const std::string& counter_id,
147 const std::optional<GetFundPositionDividendsOptions>& opts,
153 void orders(
const std::optional<GetFundOrdersOptions>& opts,
162 const std::optional<GetFundTransactionsOptions>& opts,
Definition: config.hpp:16
Fund (mutual fund) channel context.
Definition: fund_context.hpp:16
void position_performance(const std::string &counter_id, AsyncCallback< FundContext, std::vector< FundPositionPerformance >> callback) const
Get the performance figures of a held fund.
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.
void positions(const std::optional< GetFundPositionsOptions > &opts, AsyncCallback< FundContext, FundPositions > callback) const
Get the user's fund positions overview.
void analysis_detail(const std::string &counter_id, const std::optional< GetFundAnalysisOptions > &opts, AsyncCallback< FundContext, FundAnalysisDetail > callback) const
Get fund analysis detail (level 2)
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.
void validate_order(const ValidateFundOrderOptions &opts, AsyncCallback< FundContext, FundOrderValidation > callback) const
Validate a fund order before submitting.
void cancel_order(int64_t order_id, AsyncCallback< FundContext, void > callback) const
Cancel (withdraw) a fund order.
FundContext(FundContext &&ctx)
void order(int64_t order_id, AsyncCallback< FundContext, FundOrderDetail > callback) const
Get a fund order detail.
void performance_comparison(const std::string &counter_id, const std::optional< GetFundAnalysisOptions > &opts, AsyncCallback< FundContext, FundPerformanceComparison > callback) const
Get fund performance comparison.
void analysis(const std::string &counter_id, const std::optional< GetFundAnalysisOptions > &opts, AsyncCallback< FundContext, FundAnalysis > callback) const
Get fund analysis (level 1)
void orders(const std::optional< GetFundOrdersOptions > &opts, AsyncCallback< FundContext, std::vector< FundOrder >> callback) const
Get the user's fund orders.
void filters(AsyncCallback< FundContext, FundFilters > callback) const
Get the fund list filter options.
void nav(const std::string &counter_id, AsyncCallback< FundContext, std::vector< FundNavValue >> callback) const
Get fund latest net value.
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)
void detail(const std::string &counter_id, AsyncCallback< FundContext, FundDetail > callback) const
Get fund detail.
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.
static FundContext create(const Config &config)
Create a FundContext from a Config.
FundContext(const FundContext &ctx)
FundContext(const lb_fund_context_t *ctx)
void annual_returns(const std::string &counter_id, const std::optional< FundPageOptions > &opts, AsyncCallback< FundContext, std::vector< FundAnnualReturn >> callback) const
Get fund annual returns.
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)
void performance(const std::string &counter_id, AsyncCallback< FundContext, std::vector< FundPerformance >> callback) const
Get fund performance figures.
void transactions(const std::optional< GetFundTransactionsOptions > &opts, AsyncCallback< FundContext, std::vector< FundTransaction >> callback) const
Get the user's fund transactions (cash-flow records)
void holdings(const std::string &counter_id, const std::optional< GetFundHoldingsOptions > &opts, AsyncCallback< FundContext, FundHoldings > callback) const
Get a fund's top-10 holdings.
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.
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.
void submit_order(const SubmitFundOrderOptions &opts, AsyncCallback< FundContext, FundOrderSubmitResponse > callback) const
Submit a fund order (buy / sell)
void trend(const std::string &counter_id, const std::optional< GetFundAnalysisOptions > &opts, AsyncCallback< FundContext, FundTrend > callback) const
Get fund trend chart.
void hot_funds(AsyncCallback< FundContext, std::vector< HotFund >> callback) const
Get the hot-selling fund list.
void quarterly_returns(const std::string &counter_id, const std::optional< FundPageOptions > &opts, AsyncCallback< FundContext, std::vector< FundQuarterlyReturn >> callback) const
Get fund quarterly returns.
FundContext & operator=(const FundContext &ctx)
void funds(const std::optional< GetFundsOptions > &opts, AsyncCallback< FundContext, std::vector< FundBrief >> callback) const
Get the fund list.
struct lb_fund_context_t lb_fund_context_t
Definition: fund_context.hpp:9
Definition: agent_context.hpp:13
std::function< void(AsyncResult< Ctx, T >)> AsyncCallback
Definition: async_result.hpp:48
Options for submitting a fund order.
Definition: types.hpp:5594
Options for validating a fund order.
Definition: types.hpp:5573