bluefin_api 1.13.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 LeaderboardEntry {
    /// Rank of the trader in the leaderboard.
    #[serde(rename = "rank")]
    pub rank: i64,
    /// The address of the account.
    #[serde(rename = "accountAddress")]
    pub account_address: String,
    /// Total account value of the trader in e9 format.
    #[serde(rename = "accountValueE9")]
    pub account_value_e9: String,
    /// Total profit and loss of the trader in e9 format.
    #[serde(rename = "pnlE9")]
    pub pnl_e9: String,
    /// Total trading volume of the trader in e9 format.
    #[serde(rename = "volumeE9")]
    pub volume_e9: String,
}

impl LeaderboardEntry {
    pub fn new(rank: i64, account_address: String, account_value_e9: String, pnl_e9: String, volume_e9: String) -> LeaderboardEntry {
        LeaderboardEntry {
            rank,
            account_address,
            account_value_e9,
            pnl_e9,
            volume_e9,
        }
    }
}