pub struct MarketDataRecorder { /* private fields */ }Implementations§
Source§impl MarketDataRecorder
impl MarketDataRecorder
pub fn new(base_dir: impl Into<PathBuf>) -> Self
pub fn without_network(self) -> Self
pub fn start( &mut self, mode: BinanceMode, manual_symbols: Vec<String>, strategy_symbols: Vec<String>, ) -> Result<RecorderStatus, StorageError>
pub fn status(&self, mode: BinanceMode) -> RecorderStatus
pub fn update_strategy_symbols( &mut self, mode: BinanceMode, strategy_symbols: Vec<String>, ) -> Result<(), StorageError>
pub fn update_manual_symbols( &mut self, mode: BinanceMode, manual_symbols: Vec<String>, ) -> Result<(), StorageError>
pub fn stop( &mut self, mode: BinanceMode, ) -> Result<RecorderStatus, StorageError>
pub fn backtest_dataset_summary( &self, mode: BinanceMode, symbol: &str, from: NaiveDate, to: NaiveDate, ) -> Result<BacktestDatasetSummary, StorageError>
pub fn worker_alive(&self, mode: BinanceMode) -> bool
pub fn metrics_for_path(db_path: &Path) -> Result<RecorderMetrics, StorageError>
pub fn backtest_summary_for_path( db_path: &Path, mode: BinanceMode, symbol: &str, from: NaiveDate, to: NaiveDate, ) -> Result<BacktestDatasetSummary, StorageError>
pub fn init_schema_for_path(db_path: &Path) -> Result<(), StorageError>
Trait Implementations§
Source§impl Debug for MarketDataRecorder
impl Debug for MarketDataRecorder
Source§impl Default for MarketDataRecorder
impl Default for MarketDataRecorder
Auto Trait Implementations§
impl Freeze for MarketDataRecorder
impl !RefUnwindSafe for MarketDataRecorder
impl Send for MarketDataRecorder
impl Sync for MarketDataRecorder
impl Unpin for MarketDataRecorder
impl UnsafeUnpin for MarketDataRecorder
impl !UnwindSafe for MarketDataRecorder
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