use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct InsiderTransaction {
pub name: String,
pub share: Option<i64>,
pub change: Option<i64>,
#[serde(rename = "filingDate")]
pub filing_date: String,
#[serde(rename = "transactionDate")]
pub transaction_date: String,
#[serde(rename = "transactionPrice")]
pub transaction_price: f64,
#[serde(rename = "transactionCode")]
pub transaction_code: String,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct InsiderTransactions {
pub symbol: String,
pub data: Vec<InsiderTransaction>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct InsiderSentiment {
pub symbol: String,
pub year: i32,
pub month: i32,
pub change: i64,
pub mspr: f64,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct InsiderSentimentData {
pub symbol: String,
pub data: Vec<InsiderSentiment>,
}