pub struct NautilusKernelConfig {Show 19 fields
pub environment: Environment,
pub trader_id: TraderId,
pub load_state: bool,
pub save_state: bool,
pub logging: LoggerConfig,
pub instance_id: Option<UUID4>,
pub timeout_connection: u32,
pub timeout_reconciliation: u32,
pub timeout_portfolio: u32,
pub timeout_disconnection: u32,
pub timeout_post_stop: u32,
pub timeout_shutdown: u32,
pub cache: Option<CacheConfig>,
pub msgbus: Option<MessageBusConfig>,
pub data_engine: Option<DataEngineConfig>,
pub risk_engine: Option<RiskEngineConfig>,
pub exec_engine: Option<ExecutionEngineConfig>,
pub portfolio: Option<PortfolioConfig>,
pub streaming: Option<StreamingConfig>,
}
Expand description
Configuration for a NautilusKernel
core system instance.
Fields§
§environment: Environment
The kernel environment context.
trader_id: TraderId
The trader ID for the node (must be a name and ID tag separated by a hyphen).
load_state: bool
If trading strategy state should be loaded from the database on start.
save_state: bool
If trading strategy state should be saved to the database on stop.
logging: LoggerConfig
The logging configuration for the kernel.
instance_id: Option<UUID4>
The unique instance identifier for the kernel
timeout_connection: u32
The timeout (seconds) for all clients to connect and initialize.
timeout_reconciliation: u32
The timeout (seconds) for execution state to reconcile.
timeout_portfolio: u32
The timeout (seconds) for portfolio to initialize margins and unrealized pnls.
timeout_disconnection: u32
The timeout (seconds) for all engine clients to disconnect.
timeout_post_stop: u32
The timeout (seconds) after stopping the node to await residual events before final shutdown.
timeout_shutdown: u32
The timeout (seconds) to await pending tasks cancellation during shutdown.
cache: Option<CacheConfig>
The cache configuration.
msgbus: Option<MessageBusConfig>
The message bus configuration.
data_engine: Option<DataEngineConfig>
The data engine configuration.
risk_engine: Option<RiskEngineConfig>
The risk engine configuration.
exec_engine: Option<ExecutionEngineConfig>
The execution engine configuration.
portfolio: Option<PortfolioConfig>
The portfolio configuration.
streaming: Option<StreamingConfig>
The configuration for streaming to feather files.
Implementations§
Source§impl NautilusKernelConfig
impl NautilusKernelConfig
pub fn new( environment: Environment, trader_id: TraderId, load_state: Option<bool>, save_state: Option<bool>, timeout_connection: Option<u32>, timeout_reconciliation: Option<u32>, timeout_portfolio: Option<u32>, timeout_disconnection: Option<u32>, timeout_post_stop: Option<u32>, timeout_shutdown: Option<u32>, logging: Option<LoggerConfig>, instance_id: Option<UUID4>, cache: Option<CacheConfig>, msgbus: Option<MessageBusConfig>, data_engine: Option<DataEngineConfig>, risk_engine: Option<RiskEngineConfig>, exec_engine: Option<ExecutionEngineConfig>, portfolio: Option<PortfolioConfig>, streaming: Option<StreamingConfig>, ) -> Self
Trait Implementations§
Source§impl Clone for NautilusKernelConfig
impl Clone for NautilusKernelConfig
Source§fn clone(&self) -> NautilusKernelConfig
fn clone(&self) -> NautilusKernelConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for NautilusKernelConfig
impl Debug for NautilusKernelConfig
Auto Trait Implementations§
impl Freeze for NautilusKernelConfig
impl RefUnwindSafe for NautilusKernelConfig
impl Send for NautilusKernelConfig
impl Sync for NautilusKernelConfig
impl Unpin for NautilusKernelConfig
impl UnwindSafe for NautilusKernelConfig
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
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>
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>
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