Enum xtb_client::schema::XtbErrorCode
source · pub enum XtbErrorCode {
Show 50 variants
BE001,
BE002,
BE003,
BE004,
BE005,
BE006,
BE007,
BE008,
BE009,
BE010,
BE011,
BE012,
BE013,
BE014,
BE016,
BE017,
BE018,
BE019,
BE094,
BE095,
BE096,
BE097,
BE098,
BE101,
BE102,
BE103,
BE104,
BE105,
BE106,
BE110,
BE115,
BE116,
BE117,
BE118,
BE200,
EX000,
EX001,
EX002,
BE000,
EX003,
EX004,
EX005,
EX006,
EX007,
EX008,
EX009,
EX010,
EX011,
OtherError(u8),
InternalServerError(u16),
}Expand description
Rust enum definition for error codes
Variants§
BE001
Invalid price
BE002
Invalid StopLoss or TakeProfit
BE003
Invalid volume
BE004
Login disabled
BE005
userPasswordCheck: Invalid login or password.
BE006
Market for instrument is closed
BE007
Mismatched parameters
BE008
Modification is denied
BE009
Not enough money on account to perform trade
BE010
Off quotes
BE011
Opposite positions prohibited
BE012
Short positions prohibited
BE013
Price has changed
BE014
Request too frequent
BE016
Too many trade requests
BE017
Too many trade requests
BE018
Trading on instrument disabled
BE019
Trading timeout
BE094
Symbol does not exist for given account
BE095
Account cannot trade on given symbol
BE096
Pending order cannot be closed. Pending order must be deleted
BE097
Cannot close already closed order
BE098
No such transaction
BE101
Unknown instrument symbol
BE102
Unknown transaction type
BE103
User is not logged
BE104
Method does not exist
BE105
Incorrect period given
BE106
Missing data
BE110
Incorrect command format
BE115
Symbol does not exist
BE116
Symbol does not exist
BE117
Invalid token
BE118
User already logged
BE200
Session timed out.
EX000
Invalid parameters
EX001
Internal error, in case of such error, please contact support
EX002
Internal error, in case of such error, please contact support
BE000
Internal error, in case of such error, please contact support
EX003
Internal error, request timed out
EX004
Login credentials are incorrect or this login is not allowed to use an application with this appId
EX005
Internal error, system overloaded
EX006
No access
EX007
userPasswordCheck: Invalid login or password. This login/password is disabled for 10 minutes (the specific login and password pair is blocked after an unsuccessful login attempt).
EX008
You have reached the connection limit. For details see the Connection validation section.
EX009
Data limit potentially exceeded. Please narrow your request range. The potential data size is calculated by: (end_time - start_time) / interval. The limit is 50 000 candles
EX010
Your login is on the black list, perhaps due to previous misuse. For details please contact support.
EX011
You are not allowed to execute this command. For details please contact support.
OtherError(u8)
BE20-37 and BE99 - Other error
InternalServerError(u16)
SExxx - Internal server error
Trait Implementations§
source§impl Clone for XtbErrorCode
impl Clone for XtbErrorCode
source§fn clone(&self) -> XtbErrorCode
fn clone(&self) -> XtbErrorCode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for XtbErrorCode
impl Debug for XtbErrorCode
source§impl Default for XtbErrorCode
impl Default for XtbErrorCode
source§fn default() -> XtbErrorCode
fn default() -> XtbErrorCode
source§impl<'de> Deserialize<'de> for XtbErrorCode
impl<'de> Deserialize<'de> for XtbErrorCode
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>,
source§impl Display for XtbErrorCode
impl Display for XtbErrorCode
source§impl FromStr for XtbErrorCode
impl FromStr for XtbErrorCode
source§impl PartialEq for XtbErrorCode
impl PartialEq for XtbErrorCode
source§fn eq(&self, other: &XtbErrorCode) -> bool
fn eq(&self, other: &XtbErrorCode) -> bool
self and other values to be equal, and is used
by ==.