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<WalletList>
pub async fn upgrade_to_uta(&self) -> Result<UTAUpdateStatus>
pub async fn get_borrow_history<'a>( &self, req: BorrowHistoryRequest<'_> ) -> Result<BorrowHistoryResponse>
pub async fn repay_liability(&self, coin: Option<&str>) -> Result<LiabilityQty>
pub async fn set_collateral_coin( &self, coin: &str, switch: bool ) -> Result<SetCollateralCoinResponse>
pub async fn batch_set_collateral( &self, requests: Vec<(&str, bool)> ) -> Result<SwitchList>
pub async fn get_collateral_info( &self, coin: Option<&str> ) -> Result<CollateralInfoList>
pub async fn get_fee_rate( &self, category: Category, symbol: Option<String> ) -> Result<Vec<FeeRate>>
pub async fn get_account_info(&self) -> Result<AccountInfo>
pub async fn get_transaction_log<'a>( &self, req: TransactionLogRequest<'a> ) -> Result<TransactionLogResult>
pub async fn get_smp_id(&self) -> Result<SmpResult>
pub async fn set_margin_mode( &self, margin_mode: &str ) -> Result<MarginModeResult>
pub async fn set_spot_hedging( &self, spot_hedging: bool ) -> Result<SpotHedgingResponse>
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 !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