pub struct TardisOptionsChainCSVConverterConfig {
pub filepaths: Vec<PathBuf>,
pub catalog_path: PathBuf,
pub underlyings: Option<Vec<String>>,
pub snapshot_interval: Option<Duration>,
pub extract_bbo_as_quotes: bool,
pub write_instruments: bool,
pub price_precision: Option<u8>,
pub size_precision: Option<u8>,
}Expand description
Configuration for converting Tardis options_chain CSV files into a Nautilus catalog.
Fields§
§filepaths: Vec<PathBuf>Tardis daily options_chain CSV file paths, processed in order.
catalog_path: PathBufNautilus catalog path.
underlyings: Option<Vec<String>>Optional underlying prefixes, such as BTC-.
snapshot_interval: Option<Duration>Optional thinning interval. Keeps the last row per instrument per bucket.
extract_bbo_as_quotes: boolWhether to emit quotes from best bid/offer fields.
write_instruments: boolWhether to derive and write instrument definitions from the CSV rows.
price_precision: Option<u8>Optional explicit price precision.
size_precision: Option<u8>Optional explicit size precision.
Implementations§
Source§impl TardisOptionsChainCSVConverterConfig
impl TardisOptionsChainCSVConverterConfig
Sourcepub fn builder() -> TardisOptionsChainCSVConverterConfigBuilder
pub fn builder() -> TardisOptionsChainCSVConverterConfigBuilder
Create an instance of TardisOptionsChainCSVConverterConfig using the builder syntax
Trait Implementations§
Source§impl Clone for TardisOptionsChainCSVConverterConfig
impl Clone for TardisOptionsChainCSVConverterConfig
Source§fn clone(&self) -> TardisOptionsChainCSVConverterConfig
fn clone(&self) -> TardisOptionsChainCSVConverterConfig
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 moreAuto Trait Implementations§
impl Freeze for TardisOptionsChainCSVConverterConfig
impl RefUnwindSafe for TardisOptionsChainCSVConverterConfig
impl Send for TardisOptionsChainCSVConverterConfig
impl Sync for TardisOptionsChainCSVConverterConfig
impl Unpin for TardisOptionsChainCSVConverterConfig
impl UnsafeUnpin for TardisOptionsChainCSVConverterConfig
impl UnwindSafe for TardisOptionsChainCSVConverterConfig
Blanket Implementations§
impl<T> Allocation for T
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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