Enum lfest::OrderError [−][src]
pub enum OrderError {
MaxActiveOrders,
InvalidLimitPrice,
InvalidTriggerPrice,
InvalidOrderSize,
NotEnoughAvailableBalance,
}
Expand description
Defines the possible order errors that can occur when submitting a new order
Variants
Maximum number of active orders reached
Invalid limit price of order
Invalid trigger price for order. e.g.: sell stop market order trigger price > ask
Invalid order size
The account does not have enough available balance to submit the order
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for OrderError
impl Send for OrderError
impl Sync for OrderError
impl Unpin for OrderError
impl UnwindSafe for OrderError
Blanket Implementations
Mutably borrows from an owned value. Read more