[−][src]Trait cxmr_api::PrivateClient
Exchange API private client struct.
Associated Types
type Error
Required methods
fn account(&self) -> &Account
fn exchange(&self) -> &'static Exchange
Returns static exchange identifier.
fn account_info<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<AccountInfo, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<AccountInfo, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Requests account information.
fn open_orders<'life0, 'async_trait>(
&'life0 self,
pair: CurrencyPair
) -> Pin<Box<dyn Future<Output = Result<Vec<MarketOrder>, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self,
pair: CurrencyPair
) -> Pin<Box<dyn Future<Output = Result<Vec<MarketOrder>, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Requests all open orders.
fn create_order<'life0, 'life1, 'async_trait>(
&'life0 self,
order: &'life1 ExchangeOrder
) -> Pin<Box<dyn Future<Output = Result<OrderExecution, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
order: &'life1 ExchangeOrder
) -> Pin<Box<dyn Future<Output = Result<OrderExecution, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Creates an order.
fn user_data_stream<'life0, 'async_trait>(
&'life0 self,
key: Option<String>
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self,
key: Option<String>
) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Renews key for user event data stream.