pub struct OcoRegistry { /* private fields */ }Expand description
One-cancels-other registry for bracket (SL + TP) protective pairs.
When a brain emits both stop_price and take_profit_price, the
ExecutionService places two
reduce-only protective orders and registers them here. When either one
fills, the FillRoutingService cancels the
sibling so the position is never closed twice.
Cheaply cloneable; both directions of each pair are stored so a fill on either leg finds its sibling.
Implementations§
Trait Implementations§
Source§impl Clone for OcoRegistry
impl Clone for OcoRegistry
Source§fn clone(&self) -> OcoRegistry
fn clone(&self) -> OcoRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for OcoRegistry
impl Default for OcoRegistry
Source§fn default() -> OcoRegistry
fn default() -> OcoRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for OcoRegistry
impl !UnwindSafe for OcoRegistry
impl Freeze for OcoRegistry
impl Send for OcoRegistry
impl Sync for OcoRegistry
impl Unpin for OcoRegistry
impl UnsafeUnpin for OcoRegistry
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