Enum lfest::OrderError[][src]

pub enum OrderError {
    MaxActiveOrders,
    InvalidLimitPrice,
    InvalidTriggerPrice,
    InvalidOrderSize,
    NotEnoughAvailableBalance,
}

Defines the possible order errors that can occur when submitting a new order

Variants

MaxActiveOrders

Maximum number of active orders reached

InvalidLimitPrice

Invalid limit price of order

InvalidTriggerPrice

Invalid trigger price for order. e.g.: sell stop market order trigger price > ask

InvalidOrderSize

Invalid order size

NotEnoughAvailableBalance

The account does not have enough available balance to submit the order

Trait Implementations

impl Debug for OrderError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.