pub struct Depth(pub String);Expand description
Limit-order-book depth of one underlying, by symbol — the
execution-layer observable (MarketDepth), kept separate from
the pricing mark (Spot). A trading adapter publishes both and
collapses the book into the Spot quote at the snapshot boundary
(MarketDepth::to_quote); pricing engines never walk a ladder.
Scenario shocks bump Spot and leave depth untouched.
Tuple Fields§
§0: StringTrait Implementations§
impl Eq for Depth
Source§impl MarketKey for Depth
impl MarketKey for Depth
Source§type Value = Arc<MarketDepth>
type Value = Arc<MarketDepth>
The type a lookup with this key returns.
Clone so a whole market
can be cloned (the basis of scenario bumping: copy, then perturb).impl StructuralPartialEq for Depth
Auto Trait Implementations§
impl Freeze for Depth
impl RefUnwindSafe for Depth
impl Send for Depth
impl Sync for Depth
impl Unpin for Depth
impl UnsafeUnpin for Depth
impl UnwindSafe for Depth
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