#[repr(i32)]pub enum ErrorCode {
Show 92 variants
UnknownOrderSent = -2_011,
OperationNotAllowed = 26,
ApiKeyRequired = 400,
NoAuthority = 401,
AccessDenied = 403,
TooManyRequests = 429,
InternalError = 500,
ServiceUnavailable = 503,
GatewayTimeout = 504,
SignatureVerificationFailed = 602,
UserDoesNotExist = 10_001,
BadSymbol = 10_007,
UserIdCannotBeNull = 10_015,
InvalidAccessKey = 10_072,
InvalidRequestTime = 10_073,
AmountCannotBeNull = 10_095,
AmountDecimalPlacesIsTooLong = 10_096,
AmountIsError = 10_097,
RiskControlSystemDetectedAbnormal = 10_098,
UserSubAccountDoesNotOpen = 10_099,
ThisCurrencyTransferIsNotSupported = 10_100,
InsufficientBalance = 10_101,
AmountCannotBeZeroOrNegative = 10_102,
ThisAccountTransferIsNotSupported = 10_103,
TransferOperationProcessing = 10_200,
TransferInFailed = 10_201,
TransferOutFailed = 10_202,
TransferIsDisabled = 10_206,
TransferIsForbidden = 10_211,
ThisWithdrawalAddressIsNotOnTheCommonlyUsedAddressListOrHasBeenInvalidated = 10_212,
NoAddressAvailablePleaseTryAgainLater = 10_216,
AssetFlowWritingFailedPleaseTryAgain = 10_219,
CurrencyCannotBeNull = 10_222,
CurrencyDoesNotExist = 10_232,
IntermediateAccountDoesNotConfiguredInRedisredis = 10_259,
DueToRiskControlWithdrawalIsUnavailablePleaseTryAgainLater = 10_265,
RemarkLengthIsTooLong = 10_268,
SubsystemIsNotSupported = 20_001,
InternalSystemErrorPleaseContactSupport = 20_002,
RecordDoesNotExist = 22_222,
SuspendedTransactionForTheSymbol = 30_000,
TheCurrentTransactionDirectionIsNotAllowedToPlaceAnOrder = 30_001,
TheMinimumTransactionVolumeCannotBeLessThan = 30_002,
TheMaximumTransactionVolumeCannotBeGreaterThan = 30_003,
InsufficientPosition = 30_004,
Oversold = 30_005,
NoValidTradePrice = 30_010,
InvalidSymbol = 30_014,
TradingDisabled = 30_016,
MarketOrderIsDisabled = 30_018,
ApiMarketOrderIsDisabled = 30_019,
NoPermissionForTheSymbol = 30_020,
NoExistOpponentOrder = 30_025,
InvalidOrderIds = 30_026,
TheCurrencyHasReachedTheMaximumPositionLimitTheBuyingIsSuspended = 30_027,
TheCurrencyTriggeredThePlatformRiskControlTheSellingIsSuspended = 30_028,
CannotExceedTheMaximumOrderLimit = 30_029,
CannotExceedTheMaximumPosition = 30_032,
CurrentOrderTypeCanNotPlaceOrder = 30_041,
ParamIsError = 33_333,
ParamCannotBeNull = 44_444,
YourAccountIsAbnormal = 60_005,
PairUserBanTradeApikey = 70_011,
ApiKeyFormatInvalid = 700_001,
SignatureForThisRequestIsNotValid = 700_002,
TimestampForThisRequestIsOutsideOfTheRecvWindow = 700_003,
ParamOrigClientOrderIdOrOrderIdMustBeSentButBothWereEmptyNull = 700_004,
RecvWindowMustLessThan60000 = 700_005,
IpNonWhiteList = 700_006,
NoPermissionToAccessTheEndpoint = 700_007,
IllegalCharactersFoundInParameter = 700_008,
RequestFailedPleaseContactTheCustomerService = 730_000,
PairNotFoundOrUserInformationError = 730_001,
YourInputParamIsInvalidOrParameterError = 730_002,
UnsupportedOperationPleaseContactTheCustomerService = 730_003,
UnusualUserStatus = 730_100,
SubAccountNameCannotBeNull = 730_600,
SubAccountNameMustBeACombinationOf8To32LettersAndNumbers = 730_601,
SubAccountRemarksCannotBeNull = 730_602,
ApiKeyRemarksCannotBeNull = 730_700,
ApiKeyPermissionCannotBeNull = 730_701,
ApiKeyPermissionDoesNotExist = 730_702,
TheIpInformationIsIncorrectAndAMaximumOf10IPsAreAllowedToBeBoundOnly = 730_703,
TheBoundIpFormatIsIncorrectPleaseRefill = 730_704,
AtMost30GroupsOfApiKeysAreAllowedToBeCreatedOnly = 730_705,
ApiKeyInformationDoesNotExist = 730_706,
AccessKeyCannotBeNull = 730_707,
UserNameAlreadyExists = 730_101,
SubAccountDoesNotExist = 140_001,
SubAccountIsForbidden = 140_002,
OrderDoesNotExist = -2_013,
InvalidResponse = -1_234_568,
}Variants§
UnknownOrderSent = -2_011
OperationNotAllowed = 26
ApiKeyRequired = 400
NoAuthority = 401
AccessDenied = 403
TooManyRequests = 429
InternalError = 500
GatewayTimeout = 504
SignatureVerificationFailed = 602
UserDoesNotExist = 10_001
BadSymbol = 10_007
UserIdCannotBeNull = 10_015
InvalidAccessKey = 10_072
InvalidRequestTime = 10_073
AmountCannotBeNull = 10_095
AmountDecimalPlacesIsTooLong = 10_096
AmountIsError = 10_097
RiskControlSystemDetectedAbnormal = 10_098
UserSubAccountDoesNotOpen = 10_099
ThisCurrencyTransferIsNotSupported = 10_100
InsufficientBalance = 10_101
AmountCannotBeZeroOrNegative = 10_102
ThisAccountTransferIsNotSupported = 10_103
TransferOperationProcessing = 10_200
TransferInFailed = 10_201
TransferOutFailed = 10_202
TransferIsDisabled = 10_206
TransferIsForbidden = 10_211
ThisWithdrawalAddressIsNotOnTheCommonlyUsedAddressListOrHasBeenInvalidated = 10_212
NoAddressAvailablePleaseTryAgainLater = 10_216
AssetFlowWritingFailedPleaseTryAgain = 10_219
CurrencyCannotBeNull = 10_222
CurrencyDoesNotExist = 10_232
IntermediateAccountDoesNotConfiguredInRedisredis = 10_259
RemarkLengthIsTooLong = 10_268
SubsystemIsNotSupported = 20_001
InternalSystemErrorPleaseContactSupport = 20_002
RecordDoesNotExist = 22_222
SuspendedTransactionForTheSymbol = 30_000
TheCurrentTransactionDirectionIsNotAllowedToPlaceAnOrder = 30_001
TheMinimumTransactionVolumeCannotBeLessThan = 30_002
TheMaximumTransactionVolumeCannotBeGreaterThan = 30_003
InsufficientPosition = 30_004
Oversold = 30_005
NoValidTradePrice = 30_010
InvalidSymbol = 30_014
TradingDisabled = 30_016
MarketOrderIsDisabled = 30_018
ApiMarketOrderIsDisabled = 30_019
NoPermissionForTheSymbol = 30_020
NoExistOpponentOrder = 30_025
InvalidOrderIds = 30_026
TheCurrencyHasReachedTheMaximumPositionLimitTheBuyingIsSuspended = 30_027
TheCurrencyTriggeredThePlatformRiskControlTheSellingIsSuspended = 30_028
CannotExceedTheMaximumOrderLimit = 30_029
CannotExceedTheMaximumPosition = 30_032
CurrentOrderTypeCanNotPlaceOrder = 30_041
ParamIsError = 33_333
ParamCannotBeNull = 44_444
YourAccountIsAbnormal = 60_005
PairUserBanTradeApikey = 70_011
ApiKeyFormatInvalid = 700_001
SignatureForThisRequestIsNotValid = 700_002
TimestampForThisRequestIsOutsideOfTheRecvWindow = 700_003
ParamOrigClientOrderIdOrOrderIdMustBeSentButBothWereEmptyNull = 700_004
RecvWindowMustLessThan60000 = 700_005
IpNonWhiteList = 700_006
NoPermissionToAccessTheEndpoint = 700_007
IllegalCharactersFoundInParameter = 700_008
RequestFailedPleaseContactTheCustomerService = 730_000
PairNotFoundOrUserInformationError = 730_001
YourInputParamIsInvalidOrParameterError = 730_002
UnsupportedOperationPleaseContactTheCustomerService = 730_003
UnusualUserStatus = 730_100
SubAccountNameCannotBeNull = 730_600
SubAccountNameMustBeACombinationOf8To32LettersAndNumbers = 730_601
SubAccountRemarksCannotBeNull = 730_602
ApiKeyRemarksCannotBeNull = 730_700
ApiKeyPermissionCannotBeNull = 730_701
ApiKeyPermissionDoesNotExist = 730_702
TheIpInformationIsIncorrectAndAMaximumOf10IPsAreAllowedToBeBoundOnly = 730_703
TheBoundIpFormatIsIncorrectPleaseRefill = 730_704
AtMost30GroupsOfApiKeysAreAllowedToBeCreatedOnly = 730_705
ApiKeyInformationDoesNotExist = 730_706
AccessKeyCannotBeNull = 730_707
UserNameAlreadyExists = 730_101
SubAccountDoesNotExist = 140_001
SubAccountIsForbidden = 140_002
OrderDoesNotExist = -2_013
InvalidResponse = -1_234_568
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
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 Error for ErrorCode
impl Error for ErrorCode
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 FromPrimitive for ErrorCode
impl FromPrimitive for ErrorCode
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreimpl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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<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.