Trait PortfolioApi

Source
pub trait PortfolioApi {
    // Required methods
    fn portfolio_account_id_allocation_get(
        &self,
        account_id: &str,
    ) -> Box<dyn Future<Item = Allocation, Error = Error<Value>>>;
    fn portfolio_account_id_ledger_get(
        &self,
        account_id: &str,
    ) -> Box<dyn Future<Item = InlineResponse20033, Error = Error<Value>>>;
    fn portfolio_account_id_meta_get(
        &self,
        account_id: &str,
    ) -> Box<dyn Future<Item = Accounts, Error = Error<Value>>>;
    fn portfolio_account_id_position_conid_get(
        &self,
        account_id: &str,
        conid: i32,
    ) -> Box<dyn Future<Item = Position, Error = Error<Value>>>;
    fn portfolio_account_id_positions_invalidate_post(
        &self,
        account_id: &str,
    ) -> Box<dyn Future<Item = Value, Error = Error<Value>>>;
    fn portfolio_account_id_positions_page_id_get(
        &self,
        account_id: &str,
        page_id: &str,
        model: &str,
        sort: &str,
        direction: &str,
        period: &str,
    ) -> Box<dyn Future<Item = Position, Error = Error<Value>>>;
    fn portfolio_account_id_summary_get(
        &self,
        account_id: &str,
    ) -> Box<dyn Future<Item = InlineResponse20034, Error = Error<Value>>>;
    fn portfolio_accounts_get(
        &self,
    ) -> Box<dyn Future<Item = Accounts, Error = Error<Value>>>;
    fn portfolio_allocation_post(
        &self,
        body: Body10,
    ) -> Box<dyn Future<Item = Allocation, Error = Error<Value>>>;
    fn portfolio_positions_conid_get(
        &self,
        conid: i32,
    ) -> Box<dyn Future<Item = InlineResponse20032, Error = Error<Value>>>;
    fn portfolio_subaccounts_get(
        &self,
    ) -> Box<dyn Future<Item = Account, Error = Error<Value>>>;
}

Required Methods§

Source

fn portfolio_account_id_allocation_get( &self, account_id: &str, ) -> Box<dyn Future<Item = Allocation, Error = Error<Value>>>

Source

fn portfolio_account_id_ledger_get( &self, account_id: &str, ) -> Box<dyn Future<Item = InlineResponse20033, Error = Error<Value>>>

Source

fn portfolio_account_id_meta_get( &self, account_id: &str, ) -> Box<dyn Future<Item = Accounts, Error = Error<Value>>>

Source

fn portfolio_account_id_position_conid_get( &self, account_id: &str, conid: i32, ) -> Box<dyn Future<Item = Position, Error = Error<Value>>>

Source

fn portfolio_account_id_positions_invalidate_post( &self, account_id: &str, ) -> Box<dyn Future<Item = Value, Error = Error<Value>>>

Source

fn portfolio_account_id_positions_page_id_get( &self, account_id: &str, page_id: &str, model: &str, sort: &str, direction: &str, period: &str, ) -> Box<dyn Future<Item = Position, Error = Error<Value>>>

Source

fn portfolio_account_id_summary_get( &self, account_id: &str, ) -> Box<dyn Future<Item = InlineResponse20034, Error = Error<Value>>>

Source

fn portfolio_accounts_get( &self, ) -> Box<dyn Future<Item = Accounts, Error = Error<Value>>>

Source

fn portfolio_allocation_post( &self, body: Body10, ) -> Box<dyn Future<Item = Allocation, Error = Error<Value>>>

Source

fn portfolio_positions_conid_get( &self, conid: i32, ) -> Box<dyn Future<Item = InlineResponse20032, Error = Error<Value>>>

Source

fn portfolio_subaccounts_get( &self, ) -> Box<dyn Future<Item = Account, Error = Error<Value>>>

Implementors§