[][src]Trait luno_sdk::Orders

pub trait Orders {
#[must_use]    fn get_fee_info<'life0, 'life1, 'async_trait>(
        &'life0 self,
        pair: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn list_orders<'life0, 'life1, 'async_trait>(
        &'life0 self,
        params: Option<HashMap<&'life1 str, String>>
    ) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn list_trades_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        params: HashMap<&'life1 str, String>
    ) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn post_market_order<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'async_trait>(
        &'life0 self,
        pair: &'life1 str,
        action: &'life2 str,
        counter_volume: Option<&'life3 str>,
        base_volume: Option<&'life4 str>,
        base_account_id: Option<&'life5 str>,
        counter_account_id: Option<&'life6 str>
    ) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        'life4: 'async_trait,
        'life5: 'async_trait,
        'life6: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn get_order<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn post_limit_order<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'life7, 'life8, 'life9, 'async_trait>(
        &'life0 self,
        pair: &'life1 str,
        action: &'life2 str,
        post_only: Option<&'life3 str>,
        volume: &'life4 str,
        price: &'life5 str,
        stop_price: Option<&'life6 str>,
        stop_direction: Option<&'life7 str>,
        base_account_id: Option<&'life8 str>,
        counter_account_id: Option<&'life9 str>
    ) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        'life4: 'async_trait,
        'life5: 'async_trait,
        'life6: 'async_trait,
        'life7: 'async_trait,
        'life8: 'async_trait,
        'life9: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn stop_order<'life0, 'life1, 'async_trait>(
        &'life0 self,
        order_id: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]fn get_fee_info<'life0, 'life1, 'async_trait>(
    &'life0 self,
    pair: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn list_orders<'life0, 'life1, 'async_trait>(
    &'life0 self,
    params: Option<HashMap<&'life1 str, String>>
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn list_trades_user<'life0, 'life1, 'async_trait>(
    &'life0 self,
    params: HashMap<&'life1 str, String>
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn post_market_order<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'async_trait>(
    &'life0 self,
    pair: &'life1 str,
    action: &'life2 str,
    counter_volume: Option<&'life3 str>,
    base_volume: Option<&'life4 str>,
    base_account_id: Option<&'life5 str>,
    counter_account_id: Option<&'life6 str>
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    'life4: 'async_trait,
    'life5: 'async_trait,
    'life6: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn get_order<'life0, 'life1, 'async_trait>(
    &'life0 self,
    id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn post_limit_order<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'life7, 'life8, 'life9, 'async_trait>(
    &'life0 self,
    pair: &'life1 str,
    action: &'life2 str,
    post_only: Option<&'life3 str>,
    volume: &'life4 str,
    price: &'life5 str,
    stop_price: Option<&'life6 str>,
    stop_direction: Option<&'life7 str>,
    base_account_id: Option<&'life8 str>,
    counter_account_id: Option<&'life9 str>
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    'life4: 'async_trait,
    'life5: 'async_trait,
    'life6: 'async_trait,
    'life7: 'async_trait,
    'life8: 'async_trait,
    'life9: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn stop_order<'life0, 'life1, 'async_trait>(
    &'life0 self,
    order_id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

impl Orders for LunoClient[src]

Loading content...