Enum lfest::OrderError
source · [−]pub enum OrderError {
MaxActiveOrders,
InvalidLimitPrice,
InvalidTriggerPrice,
InvalidOrderSize,
NotEnoughAvailableBalance,
}
Expand description
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
InvalidOrderSize
Invalid order size
NotEnoughAvailableBalance
The account does not have enought 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