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;
}

Required Methods§

Source

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,

POST /off_exchange/add

Add collateral and create deposit request. Learn more about Fireblocks Off Exchange in the following guide.
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor.

Source

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,

GET /off_exchange/collateral_accounts/{mainExchangeAccountId}

Returns a collateral account by mainExchangeAccountId.
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor.

Source

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,

GET /off_exchange/settlements/transactions

Get settlements transactions from exchange.
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor.

Source

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,

POST /off_exchange/remove

Remove collateral and create withdraw request.
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor.

Source

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,

POST /off_exchange/settlements/trader

Create settlement for a trader. Learn more about Fireblocks Off Exchange in the following guide.
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor.

Implementors§