pub enum OkxErrorCode {
InvalidRequest,
InvalidApiKey,
InvalidSignature,
InvalidTimestamp,
RateLimitExceeded,
InvalidPassphrase,
BadSymbol,
ParameterError,
InsufficientFunds,
OrderNotFound,
InsufficientBalance,
Unknown(i64),
}Expand description
OKX error codes and their meanings.
Reference: https://www.okx.com/docs-v5/en/#error-code
Variants§
InvalidRequest
Invalid request (50000)
InvalidApiKey
Invalid API key (50001)
InvalidSignature
Invalid signature (50002)
InvalidTimestamp
Invalid timestamp (50003)
RateLimitExceeded
Rate limit exceeded (50004)
InvalidPassphrase
Invalid passphrase (50005)
BadSymbol
Bad symbol / Invalid instrument (50011)
ParameterError
General parameter error (51000)
InsufficientFunds
Insufficient funds (51001)
OrderNotFound
Order does not exist (51400)
InsufficientBalance
Insufficient balance (51008)
Unknown(i64)
Unknown error code
Implementations§
Trait Implementations§
Source§impl Clone for OkxErrorCode
impl Clone for OkxErrorCode
Source§fn clone(&self) -> OkxErrorCode
fn clone(&self) -> OkxErrorCode
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 OkxErrorCode
impl Debug for OkxErrorCode
Source§impl PartialEq for OkxErrorCode
impl PartialEq for OkxErrorCode
impl Copy for OkxErrorCode
impl Eq for OkxErrorCode
impl StructuralPartialEq for OkxErrorCode
Auto Trait Implementations§
impl Freeze for OkxErrorCode
impl RefUnwindSafe for OkxErrorCode
impl Send for OkxErrorCode
impl Sync for OkxErrorCode
impl Unpin for OkxErrorCode
impl UnwindSafe for OkxErrorCode
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