XtbErrorCode

Enum 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

Source§

fn clone(&self) -> XtbErrorCode

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for XtbErrorCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for XtbErrorCode

Source§

fn default() -> XtbErrorCode

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for XtbErrorCode
where Self: FromStr, <Self as FromStr>::Err: Display,

Source§

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 XtbErrorCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromStr for XtbErrorCode

Source§

type Err = XtbErrorCodeError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<XtbErrorCode, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl PartialEq for XtbErrorCode

Source§

fn eq(&self, other: &XtbErrorCode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for XtbErrorCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,