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 AccountPositionLeverageUpdateRequestSignedFields {
    /// The Account Address from which to update leverage
    #[serde(rename = "accountAddress")]
    pub account_address: String,
    /// Symbol of the perpetual of the positions for which to update the leverage
    #[serde(rename = "symbol")]
    pub symbol: String,
    /// The leverage to set for the account positions (Must be a number in base e9)
    #[serde(rename = "leverageE9")]
    pub leverage_e9: String,
    /// The random generated SALT. Should always be a number
    #[serde(rename = "salt")]
    pub salt: String,
    /// the ID of the internal datastore for the target network
    #[serde(rename = "idsId")]
    pub ids_id: String,
    /// The timestamp in millis at which the request was signed
    #[serde(rename = "signedAtMillis")]
    pub signed_at_millis: i64,
}

impl AccountPositionLeverageUpdateRequestSignedFields {
    pub fn new(account_address: String, symbol: String, leverage_e9: String, salt: String, ids_id: String, signed_at_millis: i64) -> AccountPositionLeverageUpdateRequestSignedFields {
        AccountPositionLeverageUpdateRequestSignedFields {
            account_address,
            symbol,
            leverage_e9,
            salt,
            ids_id,
            signed_at_millis,
        }
    }
}