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 FundingRateEntry {
    /// The market symbol.
    #[serde(rename = "symbol")]
    pub symbol: String,
    /// Timestamp of the funding time in milliseconds.
    #[serde(rename = "fundingTimeAtMillis")]
    pub funding_time_at_millis: i64,
    /// Funding rate for the market address.
    #[serde(rename = "fundingRateE9")]
    pub funding_rate_e9: String,
}

impl FundingRateEntry {
    pub fn new(symbol: String, funding_time_at_millis: i64, funding_rate_e9: String) -> FundingRateEntry {
        FundingRateEntry {
            symbol,
            funding_time_at_millis,
            funding_rate_e9,
        }
    }
}