#[non_exhaustive]pub struct HlFrontendOpenOrder {Show 16 fields
pub oid: u64,
pub coin: String,
pub side: TradeSide,
pub limit_px: Decimal,
pub sz: Decimal,
pub orig_sz: Decimal,
pub timestamp: u64,
pub order_type: String,
pub tif: Option<String>,
pub reduce_only: bool,
pub is_trigger: bool,
pub is_position_tpsl: bool,
pub trigger_condition: String,
pub trigger_px: Decimal,
pub cloid: Option<String>,
pub children: Vec<HlFrontendOpenOrder>,
}Expand description
An open order with the richer “frontend” metadata (trigger conditions,
TP/SL bracket info, original size, children) returned by the
frontendOpenOrders query — a superset of HlOpenOrder.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.oid: u64Order ID.
coin: StringThe coin/asset symbol.
side: TradeSideOrder side.
limit_px: DecimalLimit price.
sz: DecimalCurrent remaining size.
orig_sz: DecimalOriginal size when the order was placed.
timestamp: u64Timestamp in milliseconds.
order_type: StringOrder type label (e.g. “Limit”, “Stop Market”, “Take Profit Limit”).
tif: Option<String>Time-in-force, if applicable (may be absent for trigger orders).
reduce_only: boolWhether this order only reduces an existing position.
is_trigger: boolWhether this is a trigger (stop/take-profit) order.
is_position_tpsl: boolWhether this order is a position-level TP/SL.
trigger_condition: StringHuman-readable trigger condition (e.g. “N/A” for non-trigger orders).
trigger_px: DecimalTrigger price (0 for non-trigger orders).
cloid: Option<String>Client order ID, if set.
children: Vec<HlFrontendOpenOrder>Child orders (e.g. the TP/SL legs of a bracket); empty when none.
Implementations§
Source§impl HlFrontendOpenOrder
impl HlFrontendOpenOrder
Sourcepub fn new(
oid: u64,
coin: String,
side: TradeSide,
limit_px: Decimal,
sz: Decimal,
orig_sz: Decimal,
timestamp: u64,
order_type: String,
tif: Option<String>,
reduce_only: bool,
is_trigger: bool,
is_position_tpsl: bool,
trigger_condition: String,
trigger_px: Decimal,
cloid: Option<String>,
children: Vec<HlFrontendOpenOrder>,
) -> Self
pub fn new( oid: u64, coin: String, side: TradeSide, limit_px: Decimal, sz: Decimal, orig_sz: Decimal, timestamp: u64, order_type: String, tif: Option<String>, reduce_only: bool, is_trigger: bool, is_position_tpsl: bool, trigger_condition: String, trigger_px: Decimal, cloid: Option<String>, children: Vec<HlFrontendOpenOrder>, ) -> Self
Creates a new HlFrontendOpenOrder.
Trait Implementations§
Source§impl Clone for HlFrontendOpenOrder
impl Clone for HlFrontendOpenOrder
Source§fn clone(&self) -> HlFrontendOpenOrder
fn clone(&self) -> HlFrontendOpenOrder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HlFrontendOpenOrder
impl Debug for HlFrontendOpenOrder
Source§impl<'de> Deserialize<'de> for HlFrontendOpenOrder
impl<'de> Deserialize<'de> for HlFrontendOpenOrder
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>,
impl Eq for HlFrontendOpenOrder
Source§impl PartialEq for HlFrontendOpenOrder
impl PartialEq for HlFrontendOpenOrder
Source§fn eq(&self, other: &HlFrontendOpenOrder) -> bool
fn eq(&self, other: &HlFrontendOpenOrder) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for HlFrontendOpenOrder
impl Serialize for HlFrontendOpenOrder
impl StructuralPartialEq for HlFrontendOpenOrder
Auto Trait Implementations§
impl Freeze for HlFrontendOpenOrder
impl RefUnwindSafe for HlFrontendOpenOrder
impl Send for HlFrontendOpenOrder
impl Sync for HlFrontendOpenOrder
impl Unpin for HlFrontendOpenOrder
impl UnsafeUnpin for HlFrontendOpenOrder
impl UnwindSafe for HlFrontendOpenOrder
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
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
key and return true if they are equal.