pub struct SizeAwareFillModel { /* private fields */ }Expand description
Fill model that applies different execution based on order size. Small orders (<=10) get 50 contracts at best. Large orders get 10 at best, remainder at +1 tick.
Implementations§
Trait Implementations§
Source§impl Clone for SizeAwareFillModel
impl Clone for SizeAwareFillModel
Source§impl Debug for SizeAwareFillModel
impl Debug for SizeAwareFillModel
Source§impl Default for SizeAwareFillModel
impl Default for SizeAwareFillModel
Source§impl FillModel for SizeAwareFillModel
impl FillModel for SizeAwareFillModel
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 SizeAwareFillModel
impl RefUnwindSafe for SizeAwareFillModel
impl Send for SizeAwareFillModel
impl Sync for SizeAwareFillModel
impl Unpin for SizeAwareFillModel
impl UnsafeUnpin for SizeAwareFillModel
impl UnwindSafe for SizeAwareFillModel
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