Trait CCPBetaApi

Source
pub trait CCPBetaApi {
    // Required methods
    fn ccp_account_get(
        &self,
    ) -> Box<dyn Future<Item = InlineResponse200, Error = Error<Value>>>;
    fn ccp_auth_init_post(
        &self,
        compete: bool,
        locale: &str,
        mac: &str,
        machine_id: &str,
        username: &str,
    ) -> Box<dyn Future<Item = InlineResponse2001, Error = Error<Value>>>;
    fn ccp_auth_response_post(
        &self,
        auth: Auth,
    ) -> Box<dyn Future<Item = InlineResponse2002, Error = Error<Value>>>;
    fn ccp_order_delete(
        &self,
        acct: &str,
        id: f32,
    ) -> Box<dyn Future<Item = OrderData, Error = Error<Value>>>;
    fn ccp_order_post(
        &self,
        acct: &str,
        conid: f32,
        ccy: &str,
        exchange: &str,
        qty: f32,
        _type: &str,
        side: &str,
        price: f32,
        tif: &str,
    ) -> Box<dyn Future<Item = OrderData, Error = Error<Value>>>;
    fn ccp_order_put(
        &self,
        acct: &str,
        id: f32,
    ) -> Box<dyn Future<Item = OrderData, Error = Error<Value>>>;
    fn ccp_orders_get(
        &self,
        acct: &str,
        cancelled: bool,
    ) -> Box<dyn Future<Item = InlineResponse2003, Error = Error<Value>>>;
    fn ccp_positions_get(
        &self,
    ) -> Box<dyn Future<Item = PositionData, Error = Error<Value>>>;
    fn ccp_status_get(
        &self,
    ) -> Box<dyn Future<Item = InlineResponse2004, Error = Error<Value>>>;
    fn ccp_trades_get(
        &self,
        from: &str,
        to: &str,
    ) -> Box<dyn Future<Item = InlineResponse2003, Error = Error<Value>>>;
}

Required Methods§

Source

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

Source

fn ccp_auth_init_post( &self, compete: bool, locale: &str, mac: &str, machine_id: &str, username: &str, ) -> Box<dyn Future<Item = InlineResponse2001, Error = Error<Value>>>

Source

fn ccp_auth_response_post( &self, auth: Auth, ) -> Box<dyn Future<Item = InlineResponse2002, Error = Error<Value>>>

Source

fn ccp_order_delete( &self, acct: &str, id: f32, ) -> Box<dyn Future<Item = OrderData, Error = Error<Value>>>

Source

fn ccp_order_post( &self, acct: &str, conid: f32, ccy: &str, exchange: &str, qty: f32, _type: &str, side: &str, price: f32, tif: &str, ) -> Box<dyn Future<Item = OrderData, Error = Error<Value>>>

Source

fn ccp_order_put( &self, acct: &str, id: f32, ) -> Box<dyn Future<Item = OrderData, Error = Error<Value>>>

Source

fn ccp_orders_get( &self, acct: &str, cancelled: bool, ) -> Box<dyn Future<Item = InlineResponse2003, Error = Error<Value>>>

Source

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

Source

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

Source

fn ccp_trades_get( &self, from: &str, to: &str, ) -> Box<dyn Future<Item = InlineResponse2003, Error = Error<Value>>>

Implementors§