chapaty 1.1.2

An event-driven Rust engine for building and evaluating quantitative trading agents. Features a Gym-style API for algorithmic backtesting and reinforcement learning.
use chrono::{DateTime, Utc};

use crate::data::event::Ohlcv;

pub mod breakout;
pub mod fade;
pub mod hybrid;

#[derive(Debug, Copy, Clone, Default)]
enum NewsPhase {
    /// The agent is waiting for a news event to occur.
    #[default]
    AwaitingNews,

    /// A news event has been observed. The agent is now waiting for the
    /// `wait_duration` to elapse before entering a trade.
    PostNews {
        news_time: DateTime<Utc>,
        news_candle: Option<Ohlcv>,
    },
}