NautilusKernelConfig

Trait NautilusKernelConfig 

Source
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§

Source

fn environment(&self) -> Environment

Returns the kernel environment context.

Source

fn trader_id(&self) -> TraderId

Returns the trader ID for the node.

Source

fn load_state(&self) -> bool

Returns if trading strategy state should be loaded from the database on start.

Source

fn save_state(&self) -> bool

Returns if trading strategy state should be saved to the database on stop.

Source

fn logging(&self) -> LoggerConfig

Returns the logging configuration for the kernel.

Source

fn instance_id(&self) -> Option<UUID4>

Returns the unique instance identifier for the kernel.

Source

fn timeout_connection(&self) -> Duration

Returns the timeout for all clients to connect and initialize.

Source

fn timeout_reconciliation(&self) -> Duration

Returns the timeout for execution state to reconcile.

Source

fn timeout_portfolio(&self) -> Duration

Returns the timeout for portfolio to initialize margins and unrealized pnls.

Source

fn timeout_disconnection(&self) -> Duration

Returns the timeout for all engine clients to disconnect.

Source

fn delay_post_stop(&self) -> Duration

Returns the timeout after stopping the node to await residual events before final shutdown.

Source

fn timeout_shutdown(&self) -> Duration

Returns the timeout to await pending tasks cancellation during shutdown.

Source

fn cache(&self) -> Option<CacheConfig>

Returns the cache configuration.

Source

fn msgbus(&self) -> Option<MessageBusConfig>

Returns the message bus configuration.

Source

fn data_engine(&self) -> Option<DataEngineConfig>

Returns the data engine configuration.

Source

fn risk_engine(&self) -> Option<RiskEngineConfig>

Returns the risk engine configuration.

Source

fn exec_engine(&self) -> Option<ExecutionEngineConfig>

Returns the execution engine configuration.

Source

fn portfolio(&self) -> Option<PortfolioConfig>

Returns the portfolio configuration.

Source

fn streaming(&self) -> Option<StreamingConfig>

Returns the configuration for streaming to feather files.

Implementors§