#[repr(i32)]pub enum SpotTradeCode {
Show 23 variants
OrderNotExist = 130_001,
OrderAlreadyCancelled = 130_002,
OrderAlreadyFilled = 130_003,
InsufficientBalance = 130_004,
PriceInvalid = 130_005,
OrderQtyInvalid = 130_006,
OrderTypeInvalid = 130_007,
OrderSideInvalid = 130_008,
TimeInForceInvalid = 130_009,
SymbolNotFound = 130_010,
OrderCreationFailed = 130_011,
OrderCancellationFailed = 130_012,
OrderAmendFailed = 130_013,
OrderAmountInvalid = 130_014,
SpotTradingNotSupported = 130_015,
TriggerPriceInvalid = 130_016,
TriggerPriceTypeInvalid = 130_017,
OrderPriceDeviate = 130_018,
OrderCreationTimeout = 130_019,
InvalidAccountType = 130_020,
SpotTradingDisabledSubAccount = 130_021,
SpotTradingDisabledMasterAccount = 130_022,
GtcOnlyCallAuction = 130_099,
}Expand description
Enum representing Bybit API V5 Spot Trade error codes.
See: https://bybit-exchange.github.io/docs/v5/error#spot-trade
Variants§
OrderNotExist = 130_001
Order does not exist.
OrderAlreadyCancelled = 130_002
Order already cancelled.
OrderAlreadyFilled = 130_003
Order already filled.
InsufficientBalance = 130_004
Insufficient balance in account.
PriceInvalid = 130_005
Invalid price.
OrderQtyInvalid = 130_006
Invalid order quantity.
OrderTypeInvalid = 130_007
Invalid order type.
OrderSideInvalid = 130_008
Invalid order side.
TimeInForceInvalid = 130_009
Invalid time-in-force.
SymbolNotFound = 130_010
Symbol not found.
OrderCreationFailed = 130_011
Order creation failed.
OrderCancellationFailed = 130_012
Order cancellation failed.
OrderAmendFailed = 130_013
Order amend failed.
OrderAmountInvalid = 130_014
Invalid order amount.
SpotTradingNotSupported = 130_015
Spot trading is not supported for this symbol.
TriggerPriceInvalid = 130_016
Trigger price invalid.
TriggerPriceTypeInvalid = 130_017
Invalid trigger price type.
OrderPriceDeviate = 130_018
Order price deviates significantly from market price.
OrderCreationTimeout = 130_019
Order creation timeout.
InvalidAccountType = 130_020
Invalid account type.
SpotTradingDisabledSubAccount = 130_021
Spot trading is disabled for this sub-account.
SpotTradingDisabledMasterAccount = 130_022
Spot trading is disabled for this master account.
GtcOnlyCallAuction = 130_099
Only Good-Till-Canceled (GTC) orders supported during Call Auction.
Implementations§
Source§impl SpotTradeCode
impl SpotTradeCode
Trait Implementations§
Source§impl Clone for SpotTradeCode
impl Clone for SpotTradeCode
Source§fn clone(&self) -> SpotTradeCode
fn clone(&self) -> SpotTradeCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SpotTradeCode
impl Debug for SpotTradeCode
Source§impl Display for SpotTradeCode
impl Display for SpotTradeCode
Source§impl From<SpotTradeCode> for ReturnCode
impl From<SpotTradeCode> for ReturnCode
Source§fn from(value: SpotTradeCode) -> Self
fn from(value: SpotTradeCode) -> Self
Source§impl Hash for SpotTradeCode
impl Hash for SpotTradeCode
Source§impl PartialEq for SpotTradeCode
impl PartialEq for SpotTradeCode
impl Copy for SpotTradeCode
impl Eq for SpotTradeCode
impl StructuralPartialEq for SpotTradeCode
Auto Trait Implementations§
impl Freeze for SpotTradeCode
impl RefUnwindSafe for SpotTradeCode
impl Send for SpotTradeCode
impl Sync for SpotTradeCode
impl Unpin for SpotTradeCode
impl UnsafeUnpin for SpotTradeCode
impl UnwindSafe for SpotTradeCode
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
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
key and return true if they are equal.