Struct bybit::account::AccountManager
source · pub struct AccountManager {
pub client: Client,
pub recv_window: u64,
}Fields§
§client: Client§recv_window: u64Implementations§
source§impl AccountManager
impl AccountManager
pub async fn get_wallet_balance( &self, account: &str, coin: Option<&str>, ) -> Result<WalletResponse, BybitError>
pub async fn upgrade_to_uta(&self) -> Result<UTAResponse, BybitError>
pub async fn get_borrow_history<'a>( &self, req: BorrowHistoryRequest<'_>, ) -> Result<BorrowHistoryResponse, BybitError>
pub async fn repay_liability( &self, coin: Option<&str>, ) -> Result<RepayLiabilityResponse, BybitError>
pub async fn set_collateral_coin( &self, coin: &str, switch: bool, ) -> Result<SetCollateralCoinResponse, BybitError>
pub async fn batch_set_collateral( &self, requests: Vec<(&str, bool)>, ) -> Result<BatchSetCollateralCoinResponse, BybitError>
pub async fn get_collateral_info( &self, coin: Option<&str>, ) -> Result<CollateralInfoResponse, BybitError>
pub async fn get_fee_rate( &self, category: Category, symbol: Option<String>, ) -> Result<FeeRateResponse, BybitError>
pub async fn get_account_info(&self) -> Result<AccountInfoResponse, BybitError>
pub async fn get_transaction_log<'a>( &self, req: TransactionLogRequest<'a>, ) -> Result<TransactionLogResponse, BybitError>
pub async fn get_smp_id(&self) -> Result<SmpResponse, BybitError>
pub async fn set_margin_mode( &self, margin_mode: &str, ) -> Result<SetMarginModeResponse, BybitError>
pub async fn set_spot_hedging( &self, spot_hedging: bool, ) -> Result<SpotHedgingResponse, BybitError>
Trait Implementations§
source§impl Bybit for AccountManager
impl Bybit for AccountManager
source§impl Clone for AccountManager
impl Clone for AccountManager
source§fn clone(&self) -> AccountManager
fn clone(&self) -> AccountManager
Returns a copy of the value. Read more
1.0.0 · 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 Freeze for AccountManager
impl !RefUnwindSafe for AccountManager
impl Send for AccountManager
impl Sync for AccountManager
impl Unpin for AccountManager
impl !UnwindSafe for AccountManager
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