pub struct LiveNodeConfig {Show 28 fields
pub environment: Environment,
pub trader_id: TraderId,
pub load_state: bool,
pub save_state: bool,
pub shutdown_on_error: bool,
pub logging: LoggerConfig,
pub instance_id: Option<UUID4>,
pub timeout_connection: Duration,
pub timeout_reconciliation: Duration,
pub timeout_portfolio: Duration,
pub timeout_disconnection: Duration,
pub delay_post_stop: Duration,
pub timeout_shutdown: Duration,
pub cache: Option<CacheConfig>,
pub msgbus: Option<MessageBusConfig>,
pub portfolio: Option<PortfolioConfig>,
pub emulator: Option<OrderEmulatorConfig>,
pub streaming: Option<StreamingConfig>,
pub queue_monitor: Option<QueueMonitorConfig>,
pub event_store: Option<EventStoreConfig>,
pub loop_debug: bool,
pub data_engine: LiveDataEngineConfig,
pub risk_engine: LiveRiskEngineConfig,
pub exec_engine: LiveExecEngineConfig,
pub data_clients: HashMap<String, LiveDataClientConfig>,
pub exec_clients: HashMap<String, LiveExecClientConfig>,
pub controller: Option<ImportableControllerConfig>,
pub plugins: Vec<PluginConfig>,
}Expand description
Configuration for live Nautilus system nodes.
Fields§
§environment: EnvironmentThe trading environment.
trader_id: TraderIdThe trader ID for the node.
load_state: boolIf actor and strategy state should be loaded from the database on start.
save_state: boolIf actor and strategy state should be saved to the database on stop.
shutdown_on_error: boolIf the system should request shutdown when an error log is emitted.
Filtered or bypassed error logs still request shutdown.
logging: LoggerConfigThe logging configuration for the kernel.
instance_id: Option<UUID4>The unique instance identifier for the kernel
timeout_connection: DurationThe timeout for all clients to connect and initialize.
timeout_reconciliation: DurationThe timeout for startup reconciliation and each continuous report-collection task.
timeout_portfolio: DurationThe timeout for portfolio to initialize margins and unrealized pnls.
timeout_disconnection: DurationThe timeout for all engine clients to disconnect.
delay_post_stop: DurationThe delay after stopping the node to await residual events before final shutdown.
timeout_shutdown: DurationThe timeout to await pending tasks cancellation during shutdown.
cache: Option<CacheConfig>The cache configuration.
msgbus: Option<MessageBusConfig>The message bus configuration.
portfolio: Option<PortfolioConfig>The portfolio configuration.
emulator: Option<OrderEmulatorConfig>The order emulator configuration.
streaming: Option<StreamingConfig>The configuration for streaming to feather files.
queue_monitor: Option<QueueMonitorConfig>The optional runner queue pressure monitor configuration.
event_store: Option<EventStoreConfig>The event-store configuration.
When set, the live node boots a kernel-managed event-store run for audit and replay.
The caller supplies a factory via LiveNodeBuilder::with_event_store to construct
the concrete KernelEventStore; this field carries the configuration that factory reads.
loop_debug: boolIf the asyncio event loop should run in debug mode.
data_engine: LiveDataEngineConfigThe live data engine configuration.
risk_engine: LiveRiskEngineConfigThe live risk engine configuration.
exec_engine: LiveExecEngineConfigThe live execution engine configuration.
data_clients: HashMap<String, LiveDataClientConfig>The data client configurations.
exec_clients: HashMap<String, LiveExecClientConfig>The execution client configurations.
controller: Option<ImportableControllerConfig>The importable controller configuration.
plugins: Vec<PluginConfig>The Rust-native plug-in instances to load before startup.
Implementations§
Source§impl LiveNodeConfig
impl LiveNodeConfig
Sourcepub fn builder() -> LiveNodeConfigBuilder
pub fn builder() -> LiveNodeConfigBuilder
Create an instance of LiveNodeConfig using the builder syntax
Trait Implementations§
Source§impl Clone for LiveNodeConfig
impl Clone for LiveNodeConfig
Source§fn clone(&self) -> LiveNodeConfig
fn clone(&self) -> LiveNodeConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more