Struct lfest::account_tracker::NoAccountTracker
source · pub struct NoAccountTracker;
Expand description
Performs no tracking of account performance
Trait Implementations§
source§impl<M> AccountTracker<M> for NoAccountTrackerwhere
M: Currency + MarginCurrency,
impl<M> AccountTracker<M> for NoAccountTrackerwhere
M: Currency + MarginCurrency,
source§fn update(&mut self, _market_state: &MarketState)
fn update(&mut self, _market_state: &MarketState)
Update with newest market info.
source§fn sample_user_balances(
&mut self,
_user_balances: &UserBalances<M>,
_mid_price: QuoteCurrency,
)
fn sample_user_balances( &mut self, _user_balances: &UserBalances<M>, _mid_price: QuoteCurrency, )
Process information about the user balances.
source§fn log_limit_order_submission(&mut self)
fn log_limit_order_submission(&mut self)
Log a
LimitOrder
submission event.source§fn log_limit_order_cancellation(&mut self)
fn log_limit_order_cancellation(&mut self)
Log a
LimitOrder
cancellation event.source§fn log_limit_order_fill(&mut self)
fn log_limit_order_fill(&mut self)
Log a
LimitOrder
fill event.source§fn log_market_order_submission(&mut self)
fn log_market_order_submission(&mut self)
Log a
MarketOrder
submission event.source§fn log_market_order_fill(&mut self)
fn log_market_order_fill(&mut self)
Log a market order fill event.
source§fn log_trade(
&mut self,
_side: Side,
_price: QuoteCurrency,
_quantity: <M as Currency>::PairedCurrency,
)
fn log_trade( &mut self, _side: Side, _price: QuoteCurrency, _quantity: <M as Currency>::PairedCurrency, )
Log a trade
source§impl Clone for NoAccountTracker
impl Clone for NoAccountTracker
source§fn clone(&self) -> NoAccountTracker
fn clone(&self) -> NoAccountTracker
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NoAccountTracker
impl Debug for NoAccountTracker
source§impl Default for NoAccountTracker
impl Default for NoAccountTracker
source§fn default() -> NoAccountTracker
fn default() -> NoAccountTracker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NoAccountTracker
impl RefUnwindSafe for NoAccountTracker
impl Send for NoAccountTracker
impl Sync for NoAccountTracker
impl Unpin for NoAccountTracker
impl UnwindSafe for NoAccountTracker
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