Struct Order
pub struct Order {
pub id: String,
pub market: Market,
pub side: Side,
pub status: OrderStatus,
pub filled_quantity: Decimal,
pub remaining_quantity: Decimal,
pub price: Option<Decimal>,
pub created_at: Option<Timestamp>,
}Expand description
An order as the exchange currently reports it.
Fields§
§id: StringThe exchange’s own order identifier. Pass it to cancel only for a live order.
market: MarketThe market it was placed on.
side: SideBuy or sell.
status: OrderStatusWhere it stands.
filled_quantity: DecimalFilled so far, in the base asset.
remaining_quantity: DecimalStill working, in the base asset.
price: Option<Decimal>The limit price, for orders that have one.
created_at: Option<Timestamp>When the exchange accepted it, when it says.
Trait Implementations§
impl Eq for Order
impl StructuralPartialEq for Order
Auto Trait Implementations§
impl Freeze for Order
impl RefUnwindSafe for Order
impl Send for Order
impl Sync for Order
impl Unpin for Order
impl UnsafeUnpin for Order
impl UnwindSafe for Order
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.