pub struct TriggerLevels {
pub mid_price: f64,
pub as_of: String,
pub total_bid_size: f64,
pub total_ask_size: f64,
pub levels: Vec<TriggerLevelBucket>,
}Expand description
Currently pending stop-loss and take-profit trigger orders grouped into
price buckets. Voluntary trigger orders, not projected forced
liquidations; use LiquidationLevels for those.
Fields§
§mid_price: f64Current mid/mark price, center of the requested range.
as_of: StringUTC RFC3339 server time the pending-trigger state was read.
total_bid_size: f64Total pending bid size across the returned window.
total_ask_size: f64Total pending ask size across the returned window.
levels: Vec<TriggerLevelBucket>Price buckets inside the requested range.
Trait Implementations§
Source§impl Clone for TriggerLevels
impl Clone for TriggerLevels
Source§fn clone(&self) -> TriggerLevels
fn clone(&self) -> TriggerLevels
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TriggerLevels
impl Debug for TriggerLevels
Source§impl<'de> Deserialize<'de> for TriggerLevels
impl<'de> Deserialize<'de> for TriggerLevels
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
Auto Trait Implementations§
impl Freeze for TriggerLevels
impl RefUnwindSafe for TriggerLevels
impl Send for TriggerLevels
impl Sync for TriggerLevels
impl Unpin for TriggerLevels
impl UnsafeUnpin for TriggerLevels
impl UnwindSafe for TriggerLevels
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