pub struct BookDepth {
pub levels: usize,
pub asks: Vec<BookLevel>,
pub bids: Vec<BookLevel>,
}
Expand description
A snapshot of the order book up to a certain depth level. Multiple orders at
the same price points are merged into a single BookLevel
struct.
Fields§
§levels: usize
The requested level. This field will always contain the level that was requested, even if some or all levels are empty.
asks: Vec<BookLevel>
A vector of price points with the associated quantity on the ask side.
bids: Vec<BookLevel>
A vector of price points with the associated quantity on the bid side.
Trait Implementations§
impl StructuralPartialEq for BookDepth
Auto Trait Implementations§
impl Freeze for BookDepth
impl RefUnwindSafe for BookDepth
impl Send for BookDepth
impl Sync for BookDepth
impl Unpin for BookDepth
impl UnwindSafe for BookDepth
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