pub trait NautilusKernelConfig: Debug {
Show 19 methods
// Required methods
fn environment(&self) -> Environment;
fn trader_id(&self) -> TraderId;
fn load_state(&self) -> bool;
fn save_state(&self) -> bool;
fn logging(&self) -> LoggerConfig;
fn instance_id(&self) -> Option<UUID4>;
fn timeout_connection(&self) -> Duration;
fn timeout_reconciliation(&self) -> Duration;
fn timeout_portfolio(&self) -> Duration;
fn timeout_disconnection(&self) -> Duration;
fn delay_post_stop(&self) -> Duration;
fn timeout_shutdown(&self) -> Duration;
fn cache(&self) -> Option<CacheConfig>;
fn msgbus(&self) -> Option<MessageBusConfig>;
fn data_engine(&self) -> Option<DataEngineConfig>;
fn risk_engine(&self) -> Option<RiskEngineConfig>;
fn exec_engine(&self) -> Option<ExecutionEngineConfig>;
fn portfolio(&self) -> Option<PortfolioConfig>;
fn streaming(&self) -> Option<StreamingConfig>;
}
Expand description
Configuration trait for a NautilusKernel
core system instance.
Required Methods§
Sourcefn environment(&self) -> Environment
fn environment(&self) -> Environment
Returns the kernel environment context.
Sourcefn load_state(&self) -> bool
fn load_state(&self) -> bool
Returns if trading strategy state should be loaded from the database on start.
Sourcefn save_state(&self) -> bool
fn save_state(&self) -> bool
Returns if trading strategy state should be saved to the database on stop.
Sourcefn logging(&self) -> LoggerConfig
fn logging(&self) -> LoggerConfig
Returns the logging configuration for the kernel.
Sourcefn instance_id(&self) -> Option<UUID4>
fn instance_id(&self) -> Option<UUID4>
Returns the unique instance identifier for the kernel.
Sourcefn timeout_connection(&self) -> Duration
fn timeout_connection(&self) -> Duration
Returns the timeout for all clients to connect and initialize.
Sourcefn timeout_reconciliation(&self) -> Duration
fn timeout_reconciliation(&self) -> Duration
Returns the timeout for execution state to reconcile.
Sourcefn timeout_portfolio(&self) -> Duration
fn timeout_portfolio(&self) -> Duration
Returns the timeout for portfolio to initialize margins and unrealized pnls.
Sourcefn timeout_disconnection(&self) -> Duration
fn timeout_disconnection(&self) -> Duration
Returns the timeout for all engine clients to disconnect.
Sourcefn delay_post_stop(&self) -> Duration
fn delay_post_stop(&self) -> Duration
Returns the timeout after stopping the node to await residual events before final shutdown.
Sourcefn timeout_shutdown(&self) -> Duration
fn timeout_shutdown(&self) -> Duration
Returns the timeout to await pending tasks cancellation during shutdown.
Sourcefn cache(&self) -> Option<CacheConfig>
fn cache(&self) -> Option<CacheConfig>
Returns the cache configuration.
Sourcefn msgbus(&self) -> Option<MessageBusConfig>
fn msgbus(&self) -> Option<MessageBusConfig>
Returns the message bus configuration.
Sourcefn data_engine(&self) -> Option<DataEngineConfig>
fn data_engine(&self) -> Option<DataEngineConfig>
Returns the data engine configuration.
Sourcefn risk_engine(&self) -> Option<RiskEngineConfig>
fn risk_engine(&self) -> Option<RiskEngineConfig>
Returns the risk engine configuration.
Sourcefn exec_engine(&self) -> Option<ExecutionEngineConfig>
fn exec_engine(&self) -> Option<ExecutionEngineConfig>
Returns the execution engine configuration.
Sourcefn portfolio(&self) -> Option<PortfolioConfig>
fn portfolio(&self) -> Option<PortfolioConfig>
Returns the portfolio configuration.
Sourcefn streaming(&self) -> Option<StreamingConfig>
fn streaming(&self) -> Option<StreamingConfig>
Returns the configuration for streaming to feather files.