pub enum OrderAnswer {
Resting {
oid: u64,
cloid: Option<Cloid>,
},
Filled {
oid: u64,
total_sz: Dec,
avg_px: Dec,
cloid: Option<Cloid>,
},
WaitingForTrigger,
WaitingForFill,
Refused(String),
Unknown(String),
}Expand description
What the venue said of one order.
Variants§
Resting
On the book.
Filled
Filled total_sz at avg_px on average: all of it, or as much as
crossed for an IOC or a market order.
WaitingForTrigger
A take profit or stop loss, placed and waiting for its trigger.
WaitingForFill
A take profit or stop loss grouped with an entry that has not filled.
Refused(String)
Refused, in the venue’s words.
Unknown(String)
A status this build does not know, kept as written. Never read as placed.
Implementations§
Trait Implementations§
Source§impl Clone for OrderAnswer
impl Clone for OrderAnswer
Source§impl Debug for OrderAnswer
impl Debug for OrderAnswer
impl Eq for OrderAnswer
Source§impl PartialEq for OrderAnswer
impl PartialEq for OrderAnswer
impl StructuralPartialEq for OrderAnswer
Auto Trait Implementations§
impl Freeze for OrderAnswer
impl RefUnwindSafe for OrderAnswer
impl Send for OrderAnswer
impl Sync for OrderAnswer
impl Unpin for OrderAnswer
impl UnsafeUnpin for OrderAnswer
impl UnwindSafe for OrderAnswer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.