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

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...
 

Detailed Description

Fund (mutual fund) channel context.

Constructor & Destructor Documentation

◆ FundContext() [1/4]

longbridge::fund::FundContext::FundContext ( )

◆ FundContext() [2/4]

longbridge::fund::FundContext::FundContext ( const lb_fund_context_t *  ctx)

◆ FundContext() [3/4]

longbridge::fund::FundContext::FundContext ( const FundContext &  ctx)

◆ FundContext() [4/4]

longbridge::fund::FundContext::FundContext ( FundContext &&  ctx)

◆ ~FundContext()

longbridge::fund::FundContext::~FundContext ( )

Member Function Documentation

◆ analysis()

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)

◆ analysis_detail()

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)

◆ annual_returns()

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.

◆ cancel_order()

void longbridge::fund::FundContext::cancel_order ( int64_t  order_id,
AsyncCallback< FundContext, void >  callback 
) const

Cancel (withdraw) a fund order.

◆ create()

static FundContext longbridge::fund::FundContext::create ( const Config &  config)
static

Create a FundContext from a Config.

◆ detail()

void longbridge::fund::FundContext::detail ( const std::string &  counter_id,
AsyncCallback< FundContext, FundDetail >  callback 
) const

Get fund detail.

◆ filters()

void longbridge::fund::FundContext::filters ( AsyncCallback< FundContext, FundFilters >  callback) const

Get the fund list filter options.

◆ funds()

void longbridge::fund::FundContext::funds ( const std::optional< GetFundsOptions > &  opts,
AsyncCallback< FundContext, std::vector< FundBrief >>  callback 
) const

Get the fund list.

◆ holdings()

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.

◆ hot_funds()

void longbridge::fund::FundContext::hot_funds ( AsyncCallback< FundContext, std::vector< HotFund >>  callback) const

Get the hot-selling fund list.

◆ nav()

void longbridge::fund::FundContext::nav ( const std::string &  counter_id,
AsyncCallback< FundContext, std::vector< FundNavValue >>  callback 
) const

Get fund latest net value.

◆ nav_history()

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)

◆ nav_range()

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.

◆ operator=()

FundContext& longbridge::fund::FundContext::operator= ( const FundContext &  ctx)

◆ order()

void longbridge::fund::FundContext::order ( int64_t  order_id,
AsyncCallback< FundContext, FundOrderDetail >  callback 
) const

Get a fund order detail.

◆ orders()

void longbridge::fund::FundContext::orders ( const std::optional< GetFundOrdersOptions > &  opts,
AsyncCallback< FundContext, std::vector< FundOrder >>  callback 
) const

Get the user's fund orders.

◆ performance()

void longbridge::fund::FundContext::performance ( const std::string &  counter_id,
AsyncCallback< FundContext, std::vector< FundPerformance >>  callback 
) const

Get fund performance figures.

◆ performance_comparison()

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.

◆ position()

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.

◆ position_dividends()

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.

◆ position_nav()

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.

◆ position_performance()

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.

◆ position_profits()

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.

◆ positions()

void longbridge::fund::FundContext::positions ( const std::optional< GetFundPositionsOptions > &  opts,
AsyncCallback< FundContext, FundPositions >  callback 
) const

Get the user's fund positions overview.

◆ quarterly_returns()

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.

◆ stock_holdings()

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)

◆ submit_order()

void longbridge::fund::FundContext::submit_order ( const SubmitFundOrderOptions &  opts,
AsyncCallback< FundContext, FundOrderSubmitResponse >  callback 
) const

Submit a fund order (buy / sell)

◆ transactions()

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)

◆ trend()

void longbridge::fund::FundContext::trend ( const std::string &  counter_id,
const std::optional< GetFundAnalysisOptions > &  opts,
AsyncCallback< FundContext, FundTrend >  callback 
) const

Get fund trend chart.

◆ validate_order()

void longbridge::fund::FundContext::validate_order ( const ValidateFundOrderOptions &  opts,
AsyncCallback< FundContext, FundOrderValidation >  callback 
) const

Validate a fund order before submitting.


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