Struct L2Book
pub struct L2Book { /* private fields */ }Implementations§
§impl L2Book
impl L2Book
pub fn new() -> L2Book
pub fn clear(&mut self)
pub fn apply_snapshot(
&mut self,
bids: &[(Decimal, Decimal)],
asks: &[(Decimal, Decimal)],
)
pub fn apply_snapshot( &mut self, bids: &[(Decimal, Decimal)], asks: &[(Decimal, Decimal)], )
pub fn apply_delta(
&mut self,
bids: &[(Decimal, Decimal)],
asks: &[(Decimal, Decimal)],
)
pub fn apply_delta( &mut self, bids: &[(Decimal, Decimal)], asks: &[(Decimal, Decimal)], )
pub fn best_bid(&self) -> Option<Decimal>
pub fn best_ask(&self) -> Option<Decimal>
pub fn mid_price(&self) -> Option<Decimal>
pub fn bid_levels(&self) -> usize
pub fn ask_levels(&self) -> usize
pub fn fill_against_book(
&mut self,
side: Side,
limit_price: Option<Decimal>,
max_qty: Decimal,
) -> Option<FillResult>
pub fn fill_against_book( &mut self, side: Side, limit_price: Option<Decimal>, max_qty: Decimal, ) -> Option<FillResult>
Trait Implementations§
§impl Clone for L2Book
impl Clone for L2Book
1.0.0 (const: )§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Auto Trait Implementations§
impl Freeze for L2Book
impl RefUnwindSafe for L2Book
impl Send for L2Book
impl Sync for L2Book
impl Unpin for L2Book
impl UnsafeUnpin for L2Book
impl UnwindSafe for L2Book
Blanket Implementations§
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)