/*
 * Binance Derivatives Trading Options REST API
 *
 * OpenAPI Specification for the Binance Derivatives Trading Options REST API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

#![allow(unused_imports)]
use crate::derivatives_trading_options::rest_api::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct KlineCandlestickDataResponseInner {
    #[serde(rename = "open", skip_serializing_if = "Option::is_none")]
    pub open: Option<String>,
    #[serde(rename = "high", skip_serializing_if = "Option::is_none")]
    pub high: Option<String>,
    #[serde(rename = "low", skip_serializing_if = "Option::is_none")]
    pub low: Option<String>,
    #[serde(rename = "close", skip_serializing_if = "Option::is_none")]
    pub close: Option<String>,
    #[serde(rename = "volume", skip_serializing_if = "Option::is_none")]
    pub volume: Option<String>,
    #[serde(rename = "amount", skip_serializing_if = "Option::is_none")]
    pub amount: Option<String>,
    #[serde(rename = "interval", skip_serializing_if = "Option::is_none")]
    pub interval: Option<String>,
    #[serde(rename = "tradeCount", skip_serializing_if = "Option::is_none")]
    pub trade_count: Option<i64>,
    #[serde(rename = "takerVolume", skip_serializing_if = "Option::is_none")]
    pub taker_volume: Option<String>,
    #[serde(rename = "takerAmount", skip_serializing_if = "Option::is_none")]
    pub taker_amount: Option<String>,
    #[serde(rename = "openTime", skip_serializing_if = "Option::is_none")]
    pub open_time: Option<i64>,
    #[serde(rename = "closeTime", skip_serializing_if = "Option::is_none")]
    pub close_time: Option<i64>,
}

impl KlineCandlestickDataResponseInner {
    #[must_use]
    pub fn new() -> KlineCandlestickDataResponseInner {
        KlineCandlestickDataResponseInner {
            open: None,
            high: None,
            low: None,
            close: None,
            volume: None,
            amount: None,
            interval: None,
            trade_count: None,
            taker_volume: None,
            taker_amount: None,
            open_time: None,
            close_time: None,
        }
    }
}
