InterfaceHttp

Trait InterfaceHttp 

Source
pub trait InterfaceHttp {
    // Required methods
    fn get_server_time<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_orderbook<'life0, 'life1, 'async_trait>(
        &'life0 self,
        symbol: &'life1 String,
        limit: Option<i32>,
    ) -> Pin<Box<dyn Future<Output = Result<Orderbook>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn place_order<'life0, 'life1, 'async_trait>(
        &'life0 self,
        params: &'life1 PlaceOrderParams,
    ) -> Pin<Box<dyn Future<Output = Result<PlaceOrderResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn cancel_order<'life0, 'life1, 'async_trait>(
        &'life0 self,
        order_id: &'life1 String,
    ) -> Pin<Box<dyn Future<Output = Result<CancelOrderResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn cancel_all_orders<'life0, 'life1, 'async_trait>(
        &'life0 self,
        symbol: &'life1 String,
    ) -> Pin<Box<dyn Future<Output = Result<CancelAllOrdersResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn amend_order<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        order_id: &'life1 String,
        params: &'life2 AmendOrderParams,
    ) -> Pin<Box<dyn Future<Output = Result<AmendOrderResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn get_server_time<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_orderbook<'life0, 'life1, 'async_trait>( &'life0 self, symbol: &'life1 String, limit: Option<i32>, ) -> Pin<Box<dyn Future<Output = Result<Orderbook>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn place_order<'life0, 'life1, 'async_trait>( &'life0 self, params: &'life1 PlaceOrderParams, ) -> Pin<Box<dyn Future<Output = Result<PlaceOrderResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn cancel_order<'life0, 'life1, 'async_trait>( &'life0 self, order_id: &'life1 String, ) -> Pin<Box<dyn Future<Output = Result<CancelOrderResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn cancel_all_orders<'life0, 'life1, 'async_trait>( &'life0 self, symbol: &'life1 String, ) -> Pin<Box<dyn Future<Output = Result<CancelAllOrdersResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn amend_order<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, order_id: &'life1 String, params: &'life2 AmendOrderParams, ) -> Pin<Box<dyn Future<Output = Result<AmendOrderResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§