pub struct FrontendOrder {Show 16 fields
pub coin: String,
pub side: Side,
pub limit_px: Dec,
pub sz: Dec,
pub oid: u64,
pub timestamp: u64,
pub trigger_condition: String,
pub is_trigger: bool,
pub trigger_px: Dec,
pub children: Vec<FrontendOrder>,
pub is_position_tpsl: bool,
pub reduce_only: bool,
pub order_type: OrderKind,
pub orig_sz: Dec,
pub tif: Option<String>,
pub cloid: Option<Cloid>,
}Expand description
One frontendOpenOrders row, the order inside orderStatus and historicalOrders, and what
the socket’s openOrders and userHistoricalOrders send: an openOrders row with its
trigger and what kind of order it is.
Fields§
§coin: String§side: Side§limit_px: Dec§sz: DecWhat is left; 0 on a position TP/SL, which closes the whole position.
oid: u64§timestamp: u64Milliseconds.
trigger_condition: StringN/A, Price above 6.04, or Triggered once a trigger has fired.
is_trigger: bool§trigger_px: Dec0.0 on an order that is not a trigger.
children: Vec<FrontendOrder>The take profit and stop loss of an entry not yet filled.
is_position_tpsl: bool§reduce_only: bool§order_type: OrderKind§orig_sz: Dec§tif: Option<String>As the venue writes it: Gtc, Alo, Ioc, FrontendMarket, LiquidationMarket;
null on a trigger still waiting.
cloid: Option<Cloid>Implementations§
Trait Implementations§
Source§impl Clone for FrontendOrder
impl Clone for FrontendOrder
Source§impl Debug for FrontendOrder
impl Debug for FrontendOrder
Source§impl<'de> Deserialize<'de> for FrontendOrder
impl<'de> Deserialize<'de> for FrontendOrder
Source§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
impl Eq for FrontendOrder
Source§impl PartialEq for FrontendOrder
impl PartialEq for FrontendOrder
impl StructuralPartialEq for FrontendOrder
Auto Trait Implementations§
impl Freeze for FrontendOrder
impl RefUnwindSafe for FrontendOrder
impl Send for FrontendOrder
impl Sync for FrontendOrder
impl Unpin for FrontendOrder
impl UnsafeUnpin for FrontendOrder
impl UnwindSafe for FrontendOrder
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.