bluefin_api 1.8.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 StatsAllTimeResponse {
    /// Timestamp in milliseconds when the statistics period starts.
    #[serde(rename = "startTimeAtMillis")]
    pub start_time_at_millis: i64,
    /// Total value locked in the legacy exchange in e9 format.
    #[serde(rename = "legacyTvlE9")]
    pub legacy_tvl_e9: String,
    /// Total value locked in the exchange in e9 format.
    #[serde(rename = "tvlE9")]
    pub tvl_e9: String,
    /// Total quote asset volume in the legacy exchange in e9 format.
    #[serde(rename = "totalLegacyQuoteAssetVolumeE9")]
    pub total_legacy_quote_asset_volume_e9: String,
    /// Total quote asset volume in the exchange in e9 format.
    #[serde(rename = "totalQuoteAssetVolumeE9")]
    pub total_quote_asset_volume_e9: String,
    /// Timestamp in milliseconds when the statistics period ends.
    #[serde(rename = "endTimeAtMillis")]
    pub end_time_at_millis: i64,
}

impl StatsAllTimeResponse {
    pub fn new(start_time_at_millis: i64, legacy_tvl_e9: String, tvl_e9: String, total_legacy_quote_asset_volume_e9: String, total_quote_asset_volume_e9: String, end_time_at_millis: i64) -> StatsAllTimeResponse {
        StatsAllTimeResponse {
            start_time_at_millis,
            legacy_tvl_e9,
            tvl_e9,
            total_legacy_quote_asset_volume_e9,
            total_quote_asset_volume_e9,
            end_time_at_millis,
        }
    }
}