pub struct TradingBook {
pub bids: Vec<[f32; 2]>,
pub asks: Vec<[f32; 2]>,
pub mark_price: f32,
}Expand description
Optional event-aligned visible depth and native mark. No interpolation.
Fields§
§bids: Vec<[f32; 2]>Descending bid [price, available base quantity], one to twenty levels.
asks: Vec<[f32; 2]>Ascending ask [price, available base quantity], one to twenty levels.
mark_price: f32Positive mark for equity and margin; distinct from executable bid/ask.
Trait Implementations§
Source§impl Clone for TradingBook
impl Clone for TradingBook
Auto Trait Implementations§
impl Forget for TradingBook
impl Freeze for TradingBook
impl Move for TradingBook
impl RefUnwindSafe for TradingBook
impl Send for TradingBookwhere
RawVecInner: Send,
impl Sync for TradingBookwhere
RawVecInner: Sync,
impl Unpin for TradingBook
impl UnsafeUnpin for TradingBook
impl UnwindSafe for TradingBookwhere
RawVecInner: UnwindSafe,
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