bybit_rs 0.1.7

Fork of the Official Python3 API connector for Bybit's HTTP (bybit) and WebSockets APIs to rust
Documentation
pub enum Account {
    GetWalletBalance,
    UpgradeToUnifiedAccount,
    GetBorrowHistory,
    GetCollateralInfo,
    GetCoinGreeks,
    GetFeeRate,
    GetAccountInfo,
    GetTransactionLog,
    SetMarginMode,
    SetMMP,
    ResetMMP,
    GetMMPState,
}

impl std::fmt::Display for Account {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Account::GetWalletBalance => write!(f, "f"),
            Account::UpgradeToUnifiedAccount => write!(f, "/v5/account/upgrade-to-uta"),
            Account::GetBorrowHistory => write!(f, "/v5/account/borrow-history"),
            Account::GetCollateralInfo => write!(f, "/v5/account/collateral-info"),
            Account::GetCoinGreeks => write!(f, "/v5/asset/coin-greeks"),
            Account::GetFeeRate => write!(f, "/v5/account/fee-rate"),
            Account::GetAccountInfo => write!(f, "/v5/account/info"),
            Account::GetTransactionLog => write!(f, "/v5/account/transaction-log"),
            Account::SetMarginMode => write!(f, "/v5/account/set-margin-mode"),
            Account::SetMMP => write!(f, "/v5/account/mmp-modify"),
            Account::ResetMMP => write!(f, "/v5/account/mmp-reset"),
            Account::GetMMPState => write!(f, "/v5/account/mmp-state"),
        }
    }
}