pub struct OrderReaperService { /* private fields */ }Expand description
Supervised service that reconciles tracked orders against the exchange and cancels any that outlive the configured TTL.
Spawned by Bot::run_until_shutdown only when order tracking is wired
and the adapter advertises
Capability::OrderTracking.
Implementations§
Source§impl OrderReaperService
impl OrderReaperService
Sourcepub fn reconciled(&self) -> u64
pub fn reconciled(&self) -> u64
Total tracked orders dropped because the exchange no longer lists them (filled or cancelled out-of-band).
Trait Implementations§
Source§impl TradingService for OrderReaperService
impl TradingService for OrderReaperService
Source§fn restart_policy(&self) -> RestartPolicy
fn restart_policy(&self) -> RestartPolicy
When should the supervisor restart this service on exit?
Auto Trait Implementations§
impl !Freeze for OrderReaperService
impl !RefUnwindSafe for OrderReaperService
impl Send for OrderReaperService
impl Sync for OrderReaperService
impl Unpin for OrderReaperService
impl UnsafeUnpin for OrderReaperService
impl !UnwindSafe for OrderReaperService
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