pub struct ItchParser { /* private fields */ }Expand description
Converts a stream of ITCH 5.0 messages into [OrderBookDelta] events
for a single instrument.
Maintains internal order state to compute remaining sizes after partial executions and cancellations.
Implementations§
Source§impl ItchParser
impl ItchParser
Sourcepub fn new(instrument_id: InstrumentId, stock: &str, base_ns: u64) -> Self
pub fn new(instrument_id: InstrumentId, stock: &str, base_ns: u64) -> Self
Creates a new ItchParser for the given instrument.
§Arguments
instrument_id- The NautilusTrader instrument ID for output deltas.stock- The ITCH stock symbol to filter for (e.g., “AAPL”).base_ns- Base UNIX nanoseconds for midnight of the trading day (ITCH timestamps are nanoseconds since midnight).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ItchParser
impl RefUnwindSafe for ItchParser
impl Send for ItchParser
impl Sync for ItchParser
impl Unpin for ItchParser
impl UnsafeUnpin for ItchParser
impl UnwindSafe for ItchParser
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more