pub struct ExchangesClient { /* private fields */ }Expand description
Client for exchanges operations.
Implementations§
Source§impl ExchangesClient
impl ExchangesClient
pub fn new(client: Client) -> Self
Sourcepub async fn get_exchange(
&self,
exchange_id: String,
) -> Result<GetExchangeResponse, Error>
pub async fn get_exchange( &self, exchange_id: String, ) -> Result<GetExchangeResponse, Error>
Retrieve the details of a specific exchange integration configuration.
Sourcepub async fn delete_exchange(
&self,
exchange_id: String,
) -> Result<DeleteExchangeResponse, Error>
pub async fn delete_exchange( &self, exchange_id: String, ) -> Result<DeleteExchangeResponse, Error>
Delete the exchange configuration from your organization.
Sourcepub async fn list_exchanges(
&self,
query: Option<ListExchangesQuery>,
) -> Result<ListExchangesResponse, Error>
pub async fn list_exchanges( &self, query: Option<ListExchangesQuery>, ) -> Result<ListExchangesResponse, Error>
List all configured exchange integrations.
Sourcepub async fn create_exchange(
&self,
body: CreateExchangeRequest,
) -> Result<CreateExchangeResponse, Error>
pub async fn create_exchange( &self, body: CreateExchangeRequest, ) -> Result<CreateExchangeResponse, Error>
Link your organization with a cryptocurrency exchange.
Sourcepub async fn list_accounts(
&self,
exchange_id: String,
query: Option<ListAccountsQuery>,
) -> Result<ListAccountsResponse, Error>
pub async fn list_accounts( &self, exchange_id: String, query: Option<ListAccountsQuery>, ) -> Result<ListAccountsResponse, Error>
Get a list of accounts for a specific exchange.
Sourcepub async fn list_account_assets(
&self,
exchange_id: String,
account_id: String,
query: Option<ListAccountAssetsQuery>,
) -> Result<ListAccountAssetsResponse, Error>
pub async fn list_account_assets( &self, exchange_id: String, account_id: String, query: Option<ListAccountAssetsQuery>, ) -> Result<ListAccountAssetsResponse, Error>
Retrieve the list of assets for a specific account on a specific exchange.
Sourcepub async fn list_asset_withdrawal_networks(
&self,
exchange_id: String,
account_id: String,
asset: String,
) -> Result<Value, Error>
pub async fn list_asset_withdrawal_networks( &self, exchange_id: String, account_id: String, asset: String, ) -> Result<Value, Error>
Lists the networks to which the given asset can be withdrawn from an exchange account.
Sourcepub async fn create_exchange_deposit(
&self,
exchange_id: String,
account_id: String,
body: CreateExchangeDepositRequest,
) -> Result<CreateExchangeDepositResponse, Error>
pub async fn create_exchange_deposit( &self, exchange_id: String, account_id: String, body: CreateExchangeDepositRequest, ) -> Result<CreateExchangeDepositResponse, Error>
Creates a new exchange deposit transaction.
Sourcepub async fn create_exchange_withdrawal(
&self,
exchange_id: String,
account_id: String,
body: CreateExchangeWithdrawalRequest,
) -> Result<CreateExchangeWithdrawalResponse, Error>
pub async fn create_exchange_withdrawal( &self, exchange_id: String, account_id: String, body: CreateExchangeWithdrawalRequest, ) -> Result<CreateExchangeWithdrawalResponse, Error>
Creates a new exchange withdrawal transaction.
Trait Implementations§
Source§impl Clone for ExchangesClient
impl Clone for ExchangesClient
Source§fn clone(&self) -> ExchangesClient
fn clone(&self) -> ExchangesClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ExchangesClient
impl !UnwindSafe for ExchangesClient
impl Freeze for ExchangesClient
impl Send for ExchangesClient
impl Sync for ExchangesClient
impl Unpin for ExchangesClient
impl UnsafeUnpin for ExchangesClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more