Skip to main content

Crate jflow_core

Crate jflow_core 

Source
Expand description

JANUS Core - Shared types and state for all modules

This library provides:

  • Common types (Signal, Config, etc.)
  • Shared application state
  • Module interface traits
  • Unified metrics
  • Inter-module communication channels

Re-exports§

pub use checkpoint_notify::CheckpointNotification;
pub use checkpoint_notify::CheckpointNotifier;
pub use checkpoint_notify::CheckpointNotifierConfig;
pub use checkpoint_notify::checkpoint_channel;
pub use config::Config;
pub use error::Error;
pub use error::Result;
pub use logging::LoggingConfig;
pub use logging::LoggingGuard;
pub use logging::init_logging;
pub use market::Exchange;
pub use market::FundingRateEvent;
pub use market::KlineEvent;
pub use market::LiquidationEvent;
pub use market::MarketDataBus;
pub use market::MarketDataEvent;
pub use market::MarketType;
pub use market::OrderBookEvent;
pub use market::PriceLevel;
pub use market::Side;
pub use market::Symbol;
pub use market::TickerEvent;
pub use market::TradeEvent;
pub use optimized_params::DEFAULT_ATR_MULTIPLIER;
pub use optimized_params::OptimizedParams;
pub use optimized_params::ParamManager;
pub use optimized_params::ParamNotification;
pub use position_events::Guidance;
pub use position_events::GuidanceAction;
pub use position_events::GuidanceThresholds;
pub use position_events::OutcomeResult;
pub use position_events::PositionClose;
pub use position_events::PositionEvent;
pub use position_events::PositionOutcome;
pub use position_events::PositionState;
pub use position_events::PositionTracker;
pub use position_events::TrailingConfig;
pub use position_events::base_asset;
pub use position_events::compute_guidance;
pub use session_metrics::SessionMetrics;
pub use session_metrics::SessionMetricsClient;
pub use signal::Signal;
pub use signal::SignalBus;
pub use signal::SignalType;
pub use state::AffinityRecorder;
pub use state::JanusState;
pub use state::LogLevelController;
pub use state::ServiceState;
pub use supervisor::BackoffConfig;
pub use supervisor::JanusService;
pub use supervisor::JanusSupervisor;
pub use supervisor::RestartPolicy;
pub use supervisor::ServicePhase;
pub use supervisor::SupervisorConfig;
pub use supervisor::SupervisorMetrics;

Modules§

checkpoint_notify
Model Checkpoint Notification
config
Unified configuration for all JANUS modules
error
Error types for JANUS
logging
High-performance multi-layer logging for the Janus trading system.
market
Unified Market Data Types for JANUS
metrics
Unified Prometheus metrics for all JANUS modules
optimized_params
Optimized Parameters Module
position_events
Position event ingress (JFLOW-C).
session_metrics
JanusAI session metrics push client (JFLOW-A).
signal
Signal types and broadcast bus for inter-module communication
state
Shared application state for all JANUS modules
supervisor
Janus Supervisor — hierarchical service lifecycle management.

Structs§

ModuleInfo
Module metadata

Enums§

ModuleStatus
Module status

Traits§

Module
Module interface trait - all modules must implement this