pub trait ExchangeAccountsApi: Send + Sync {
// Required methods
fn add_exchange_account<'life0, 'async_trait>(
&'life0 self,
params: AddExchangeAccountParams,
) -> Pin<Box<dyn Future<Output = Result<AddExchangeAccountResponse, Error<AddExchangeAccountError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn convert_assets<'life0, 'async_trait>(
&'life0 self,
params: ConvertAssetsParams,
) -> Pin<Box<dyn Future<Output = Result<ConvertAssetsResponse, Error<ConvertAssetsError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_exchange_account<'life0, 'async_trait>(
&'life0 self,
params: GetExchangeAccountParams,
) -> Pin<Box<dyn Future<Output = Result<ExchangeAccount, Error<GetExchangeAccountError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_exchange_account_asset<'life0, 'async_trait>(
&'life0 self,
params: GetExchangeAccountAssetParams,
) -> Pin<Box<dyn Future<Output = Result<ExchangeAsset, Error<GetExchangeAccountAssetError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_paged_exchange_accounts<'life0, 'async_trait>(
&'life0 self,
params: GetPagedExchangeAccountsParams,
) -> Pin<Box<dyn Future<Output = Result<Vec<ExchangeAccountsPaged>, Error<GetPagedExchangeAccountsError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn internal_transfer<'life0, 'async_trait>(
&'life0 self,
params: InternalTransferParams,
) -> Pin<Box<dyn Future<Output = Result<InternalTransferResponse, Error<InternalTransferError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Required Methods§
Sourcefn add_exchange_account<'life0, 'async_trait>(
&'life0 self,
params: AddExchangeAccountParams,
) -> Pin<Box<dyn Future<Output = Result<AddExchangeAccountResponse, Error<AddExchangeAccountError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_exchange_account<'life0, 'async_trait>(
&'life0 self,
params: AddExchangeAccountParams,
) -> Pin<Box<dyn Future<Output = Result<AddExchangeAccountResponse, Error<AddExchangeAccountError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
POST /exchange_accounts
Add an exchange account to exchanges. Note: This endpoint currently only supports the following exchanges INDEPENDENT_RESERVE,BIT, BITHUMB, BITSO, CRYPTOCOM, BYBIT_V2, WHITEBIT, HITBTC, GEMINI, HUOBI, GATEIO, COINHAKO, BULLISH, BITGET, and LUNO To add an exchange account, please use the following guide.
Sourcefn convert_assets<'life0, 'async_trait>(
&'life0 self,
params: ConvertAssetsParams,
) -> Pin<Box<dyn Future<Output = Result<ConvertAssetsResponse, Error<ConvertAssetsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn convert_assets<'life0, 'async_trait>(
&'life0 self,
params: ConvertAssetsParams,
) -> Pin<Box<dyn Future<Output = Result<ConvertAssetsResponse, Error<ConvertAssetsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
POST /exchange_accounts/{exchangeAccountId}/convert
Convert exchange account funds from the source asset to the destination asset. Coinbase (USD to USDC, USDC to USD) and Bitso (MXN to USD) are supported conversions. Learn more about Fireblocks Exchange Connectivity in the following guide. Endpoint Permission: Admin, Non-Signing Admin.
Sourcefn get_exchange_account<'life0, 'async_trait>(
&'life0 self,
params: GetExchangeAccountParams,
) -> Pin<Box<dyn Future<Output = Result<ExchangeAccount, Error<GetExchangeAccountError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_exchange_account<'life0, 'async_trait>(
&'life0 self,
params: GetExchangeAccountParams,
) -> Pin<Box<dyn Future<Output = Result<ExchangeAccount, Error<GetExchangeAccountError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /exchange_accounts/{exchangeAccountId}
Returns an exchange account by ID. Endpoint Permission: Admin, Non-Signing Admin.
Sourcefn get_exchange_account_asset<'life0, 'async_trait>(
&'life0 self,
params: GetExchangeAccountAssetParams,
) -> Pin<Box<dyn Future<Output = Result<ExchangeAsset, Error<GetExchangeAccountAssetError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_exchange_account_asset<'life0, 'async_trait>(
&'life0 self,
params: GetExchangeAccountAssetParams,
) -> Pin<Box<dyn Future<Output = Result<ExchangeAsset, Error<GetExchangeAccountAssetError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /exchange_accounts/{exchangeAccountId}/{assetId}
Returns an asset for an exchange account. Endpoint Permission: Admin, Non-Signing Admin.
Sourcefn get_paged_exchange_accounts<'life0, 'async_trait>(
&'life0 self,
params: GetPagedExchangeAccountsParams,
) -> Pin<Box<dyn Future<Output = Result<Vec<ExchangeAccountsPaged>, Error<GetPagedExchangeAccountsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_paged_exchange_accounts<'life0, 'async_trait>(
&'life0 self,
params: GetPagedExchangeAccountsParams,
) -> Pin<Box<dyn Future<Output = Result<Vec<ExchangeAccountsPaged>, Error<GetPagedExchangeAccountsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /exchange_accounts/paged
Returns a list of the connected exchange accounts in your workspace. Endpoint Permission: Admin, Non-Signing Admin.
Sourcefn internal_transfer<'life0, 'async_trait>(
&'life0 self,
params: InternalTransferParams,
) -> Pin<Box<dyn Future<Output = Result<InternalTransferResponse, Error<InternalTransferError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn internal_transfer<'life0, 'async_trait>(
&'life0 self,
params: InternalTransferParams,
) -> Pin<Box<dyn Future<Output = Result<InternalTransferResponse, Error<InternalTransferError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
POST /exchange_accounts/{exchangeAccountId}/internal_transfer
Transfers funds between trading accounts under the same exchange account. Learn more about Fireblocks Exchange Connectivity in the following guide. Endpoint Permission: Admin, Non-Signing Admin.