Trait OffExchangeApi
Source pub trait OffExchangeApi: Send + Sync {
// Required methods
fn add_off_exchange<'life0, 'async_trait>(
&'life0 self,
params: AddOffExchangeParams,
) -> Pin<Box<dyn Future<Output = Result<CreateTransactionResponse, Error<AddOffExchangeError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_off_exchange_collateral_accounts<'life0, 'async_trait>(
&'life0 self,
params: GetOffExchangeCollateralAccountsParams,
) -> Pin<Box<dyn Future<Output = Result<ExchangeAccount, Error<GetOffExchangeCollateralAccountsError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_off_exchange_settlement_transactions<'life0, 'async_trait>(
&'life0 self,
params: GetOffExchangeSettlementTransactionsParams,
) -> Pin<Box<dyn Future<Output = Result<ExchangeSettlementTransactionsResponse, Error<GetOffExchangeSettlementTransactionsError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn remove_off_exchange<'life0, 'async_trait>(
&'life0 self,
params: RemoveOffExchangeParams,
) -> Pin<Box<dyn Future<Output = Result<CreateTransactionResponse, Error<RemoveOffExchangeError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn settle_off_exchange_trades<'life0, 'async_trait>(
&'life0 self,
params: SettleOffExchangeTradesParams,
) -> Pin<Box<dyn Future<Output = Result<SettlementResponse, Error<SettleOffExchangeTradesError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}