use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AccountValueHistoryData {
#[serde(rename = "timestampMillis")]
pub timestamp_millis: i64,
#[serde(rename = "unrealizedPnlE9")]
pub unrealized_pnl_e9: String,
#[serde(rename = "valueE9")]
pub value_e9: String,
#[serde(rename = "accumulatedPnlE9")]
pub accumulated_pnl_e9: String,
}
impl AccountValueHistoryData {
pub fn new(timestamp_millis: i64, unrealized_pnl_e9: String, value_e9: String, accumulated_pnl_e9: String) -> AccountValueHistoryData {
AccountValueHistoryData {
timestamp_millis,
unrealized_pnl_e9,
value_e9,
accumulated_pnl_e9,
}
}
}