pub struct BinanceTardisAdapter { /* private fields */ }Expand description
Binance Tardis L2 data adapter
Implementations§
Source§impl BinanceTardisAdapter
impl BinanceTardisAdapter
Sourcepub fn add_symbol_mapping(
&mut self,
tardis_symbol: String,
internal_symbol: String,
)
pub fn add_symbol_mapping( &mut self, tardis_symbol: String, internal_symbol: String, )
Add custom symbol mapping
Sourcepub fn process_line(
&mut self,
line: &str,
) -> Result<Option<OrderBookSnapshot>, ParseError>
pub fn process_line( &mut self, line: &str, ) -> Result<Option<OrderBookSnapshot>, ParseError>
Process a CSV line and return snapshot if complete
Sourcepub fn flush(&mut self) -> Result<Option<OrderBookSnapshot>, ParseError>
pub fn flush(&mut self) -> Result<Option<OrderBookSnapshot>, ParseError>
Flush any remaining buffered data
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BinanceTardisAdapter
impl RefUnwindSafe for BinanceTardisAdapter
impl Send for BinanceTardisAdapter
impl Sync for BinanceTardisAdapter
impl Unpin for BinanceTardisAdapter
impl UnwindSafe for BinanceTardisAdapter
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