#[non_exhaustive]pub struct OrderBookBucket {
pub price: Option<PriceValue>,
pub long_count_percent: Option<DecimalNumber>,
pub short_count_percent: Option<DecimalNumber>,
}Expand description
The order book data for a partition of the instrument’s prices.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.price: Option<PriceValue>The lowest price (inclusive) covered by the bucket. The bucket covers the price range from the price to price + the order book’s bucketWidth.
long_count_percent: Option<DecimalNumber>The percentage of the total number of orders represented by the long orders found in this bucket.
short_count_percent: Option<DecimalNumber>The percentage of the total number of orders represented by the short orders found in this bucket.
Trait Implementations§
Source§impl Clone for OrderBookBucket
impl Clone for OrderBookBucket
Source§fn clone(&self) -> OrderBookBucket
fn clone(&self) -> OrderBookBucket
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 OrderBookBucket
impl Debug for OrderBookBucket
Source§impl<'de> Deserialize<'de> for OrderBookBucket
impl<'de> Deserialize<'de> for OrderBookBucket
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
Source§impl PartialEq for OrderBookBucket
impl PartialEq for OrderBookBucket
Source§impl Serialize for OrderBookBucket
impl Serialize for OrderBookBucket
impl StructuralPartialEq for OrderBookBucket
Auto Trait Implementations§
impl Freeze for OrderBookBucket
impl RefUnwindSafe for OrderBookBucket
impl Send for OrderBookBucket
impl Sync for OrderBookBucket
impl Unpin for OrderBookBucket
impl UnsafeUnpin for OrderBookBucket
impl UnwindSafe for OrderBookBucket
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