use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ForexSymbol {
pub description: String,
pub display_symbol: String,
pub symbol: String,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ForexRates {
pub base: String,
pub quote: std::collections::HashMap<String, f64>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ForexCandles {
#[serde(rename = "o")]
pub open: Vec<f64>,
#[serde(rename = "h")]
pub high: Vec<f64>,
#[serde(rename = "l")]
pub low: Vec<f64>,
#[serde(rename = "c")]
pub close: Vec<f64>,
#[serde(rename = "v")]
pub volume: Vec<f64>,
#[serde(rename = "t")]
pub timestamp: Vec<i64>,
#[serde(rename = "s")]
pub status: String,
}