#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)]
#[serde(rename_all = "lowercase")]
pub enum TradeSide {
Long,
Short,
}
#[derive(Debug, Clone, serde::Serialize)]
pub struct Trade {
pub symbol: String,
pub entry_date: i32,
pub exit_date: Option<i32>,
pub ret: f64,
pub period: u32,
pub mae: Option<f64>,
pub mfe: Option<f64>,
pub entry_price: f64,
#[serde(skip_serializing_if = "Option::is_none")]
pub exit_price: Option<f64>,
pub side: TradeSide,
}