pub enum KrakenError {
Show 17 variants
PermissionDenied,
InvalidKey,
UnknownAssetPair,
InvalidArguments(String),
InvalidSignature,
InvalidNonce,
InvalidSession,
BadRequest,
UnknownMethod,
RateLimitExceeded,
TradingRateLimitExceeded,
TemporaryLockout,
ServiceUnavailable,
ServiceBusy,
InternalError,
TradeLocked,
FeatureDisabled,
}
Expand description
Enum of all parsed Kraken errors.
The user still has significant responsibilities in checking error fields!
Parsing of error messages is done for the general and higher-level errors produced by the API,
not including individual trading and request errors. For instance, PermissionDenied
and
UnknownAssetPair
are parsed because they’re broadly applicable to many endpoints, while specific
trading errors like “InsufficientMargin” are not.
More documentation can be found on Kraken’s API error support page.
Variants§
PermissionDenied
InvalidKey
UnknownAssetPair
InvalidArguments(String)
InvalidSignature
InvalidNonce
InvalidSession
BadRequest
UnknownMethod
RateLimitExceeded
TradingRateLimitExceeded
TemporaryLockout
ServiceBusy
InternalError
TradeLocked
FeatureDisabled
Trait Implementations§
Source§impl Clone for KrakenError
impl Clone for KrakenError
Source§fn clone(&self) -> KrakenError
fn clone(&self) -> KrakenError
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 moreSource§impl Debug for KrakenError
impl Debug for KrakenError
Source§impl<'de> Deserialize<'de> for KrakenError
impl<'de> Deserialize<'de> for KrakenError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for KrakenError
impl Display for KrakenError
Source§impl Error for KrakenError
impl Error for KrakenError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for KrakenError
impl PartialEq for KrakenError
Source§impl TryFrom<&String> for KrakenError
impl TryFrom<&String> for KrakenError
Parsing for all supported error types from the raw messages in ResultErrorResponse.error
.
impl Eq for KrakenError
impl StructuralPartialEq for KrakenError
Auto Trait Implementations§
impl Freeze for KrakenError
impl RefUnwindSafe for KrakenError
impl Send for KrakenError
impl Sync for KrakenError
impl Unpin for KrakenError
impl UnwindSafe for KrakenError
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.