#[repr(i32)]pub enum SpotMarginCode {
MarginTradingNotEnabled = 132_001,
MarginTradingDisabledSubAccount = 132_002,
MarginTradingDisabledMasterAccount = 132_003,
InsufficientMarginBalance = 132_004,
InvalidLeverage = 132_005,
InvalidBorrowAmount = 132_006,
BorrowFailed = 132_007,
RepayFailed = 132_008,
InvalidRepayAmount = 132_009,
MarginLevelTooLow = 132_010,
MarginTradingNotSupported = 132_011,
InvalidMarginAccountType = 132_012,
}Expand description
Enum representing Bybit API V5 Spot Margin error codes.
See: https://bybit-exchange.github.io/docs/v5/error#spot-margin-trade
Variants§
MarginTradingNotEnabled = 132_001
Spot margin trading is not enabled.
MarginTradingDisabledSubAccount = 132_002
Spot margin trading is disabled for this sub-account.
MarginTradingDisabledMasterAccount = 132_003
Spot margin trading is disabled for this master account.
InsufficientMarginBalance = 132_004
Insufficient margin balance.
InvalidLeverage = 132_005
Invalid leverage.
InvalidBorrowAmount = 132_006
Invalid borrow amount.
BorrowFailed = 132_007
Borrow failed.
RepayFailed = 132_008
Repay failed.
InvalidRepayAmount = 132_009
Invalid repay amount.
MarginLevelTooLow = 132_010
Margin level is too low.
MarginTradingNotSupported = 132_011
Spot margin trading is not supported for this symbol.
InvalidMarginAccountType = 132_012
Invalid margin account type.
Implementations§
Trait Implementations§
Source§impl Clone for SpotMarginCode
impl Clone for SpotMarginCode
Source§fn clone(&self) -> SpotMarginCode
fn clone(&self) -> SpotMarginCode
Returns a duplicate 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 moreSource§impl Debug for SpotMarginCode
impl Debug for SpotMarginCode
Source§impl Display for SpotMarginCode
impl Display for SpotMarginCode
Source§impl From<SpotMarginCode> for ReturnCode
impl From<SpotMarginCode> for ReturnCode
Source§fn from(value: SpotMarginCode) -> Self
fn from(value: SpotMarginCode) -> Self
Converts to this type from the input type.
Source§impl Hash for SpotMarginCode
impl Hash for SpotMarginCode
Source§impl PartialEq for SpotMarginCode
impl PartialEq for SpotMarginCode
impl Copy for SpotMarginCode
impl Eq for SpotMarginCode
impl StructuralPartialEq for SpotMarginCode
Auto Trait Implementations§
impl Freeze for SpotMarginCode
impl RefUnwindSafe for SpotMarginCode
impl Send for SpotMarginCode
impl Sync for SpotMarginCode
impl Unpin for SpotMarginCode
impl UnsafeUnpin for SpotMarginCode
impl UnwindSafe for SpotMarginCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.