bluefin_api 1.2.0

Bluefin API
Documentation
/*
 * Bluefin API
 *
 * Bluefin API
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AccountValueHistoryData {
    /// Timestamp in milliseconds since Unix epoch.
    #[serde(rename = "timestampMillis")]
    pub timestamp_millis: i64,
    /// Unrealized PnL at this timestamp (e9 format).
    #[serde(rename = "unrealizedPnlE9")]
    pub unrealized_pnl_e9: String,
    /// Account value at this timestamp (e9 format).
    #[serde(rename = "valueE9")]
    pub value_e9: String,
}

impl AccountValueHistoryData {
    pub fn new(timestamp_millis: i64, unrealized_pnl_e9: String, value_e9: String) -> AccountValueHistoryData {
        AccountValueHistoryData {
            timestamp_millis,
            unrealized_pnl_e9,
            value_e9,
        }
    }
}