pub struct OneTickSlippageFillModel { /* private fields */ }Expand description
Fill model that forces exactly one tick of slippage for all orders.
Implementations§
Trait Implementations§
Source§impl Clone for OneTickSlippageFillModel
impl Clone for OneTickSlippageFillModel
Source§impl Debug for OneTickSlippageFillModel
impl Debug for OneTickSlippageFillModel
Source§impl Default for OneTickSlippageFillModel
impl Default for OneTickSlippageFillModel
Source§impl FillModel for OneTickSlippageFillModel
impl FillModel for OneTickSlippageFillModel
Source§fn is_limit_filled(&mut self) -> Result<bool>
fn is_limit_filled(&mut self) -> Result<bool>
Returns
true if a limit order should be filled based on the model. Read moreSource§fn is_slipped(&mut self) -> Result<bool>
fn is_slipped(&mut self) -> Result<bool>
Returns
true if an order fill should slip by one tick. Read moreAuto Trait Implementations§
impl Freeze for OneTickSlippageFillModel
impl RefUnwindSafe for OneTickSlippageFillModel
impl Send for OneTickSlippageFillModel
impl Sync for OneTickSlippageFillModel
impl Unpin for OneTickSlippageFillModel
impl UnsafeUnpin for OneTickSlippageFillModel
impl UnwindSafe for OneTickSlippageFillModel
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