Skip to main content

binance_sdk/spot/rest_api/models/
ticker24hr_response2_inner.rs

1/*
2 * Spot REST API
3 *
4 * Access market data, manage accounts, and trade on Binance Spot.
5 *
6 * The version of the OpenAPI document: 1.0.0
7 *
8 *
9 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10 * https://openapi-generator.tech
11 * Do not edit the class manually.
12 */
13
14#![allow(unused_imports)]
15use crate::spot::rest_api::models;
16use serde::{Deserialize, Serialize};
17
18#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
19pub struct Ticker24hrResponse2Inner {
20    /// Symbol Name
21    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
22    pub symbol: Option<String>,
23    #[serde(rename = "priceChange", skip_serializing_if = "Option::is_none")]
24    pub price_change: Option<String>,
25    #[serde(rename = "priceChangePercent", skip_serializing_if = "Option::is_none")]
26    pub price_change_percent: Option<String>,
27    #[serde(rename = "weightedAvgPrice", skip_serializing_if = "Option::is_none")]
28    pub weighted_avg_price: Option<String>,
29    #[serde(rename = "prevClosePrice", skip_serializing_if = "Option::is_none")]
30    pub prev_close_price: Option<String>,
31    /// Closing price of the interval
32    #[serde(rename = "lastPrice", skip_serializing_if = "Option::is_none")]
33    pub last_price: Option<String>,
34    #[serde(rename = "lastQty", skip_serializing_if = "Option::is_none")]
35    pub last_qty: Option<String>,
36    #[serde(rename = "bidPrice", skip_serializing_if = "Option::is_none")]
37    pub bid_price: Option<String>,
38    #[serde(rename = "bidQty", skip_serializing_if = "Option::is_none")]
39    pub bid_qty: Option<String>,
40    #[serde(rename = "askPrice", skip_serializing_if = "Option::is_none")]
41    pub ask_price: Option<String>,
42    #[serde(rename = "askQty", skip_serializing_if = "Option::is_none")]
43    pub ask_qty: Option<String>,
44    /// Opening price of the Interval
45    #[serde(rename = "openPrice", skip_serializing_if = "Option::is_none")]
46    pub open_price: Option<String>,
47    /// Highest price in the interval
48    #[serde(rename = "highPrice", skip_serializing_if = "Option::is_none")]
49    pub high_price: Option<String>,
50    /// Lowest  price in the interval
51    #[serde(rename = "lowPrice", skip_serializing_if = "Option::is_none")]
52    pub low_price: Option<String>,
53    /// Total trade volume (in base asset)
54    #[serde(rename = "volume", skip_serializing_if = "Option::is_none")]
55    pub volume: Option<String>,
56    /// Total trade volume (in quote asset)
57    #[serde(rename = "quoteVolume", skip_serializing_if = "Option::is_none")]
58    pub quote_volume: Option<String>,
59    /// Start of the ticker interval
60    #[serde(rename = "openTime", skip_serializing_if = "Option::is_none")]
61    pub open_time: Option<i64>,
62    /// End of the ticker interval
63    #[serde(rename = "closeTime", skip_serializing_if = "Option::is_none")]
64    pub close_time: Option<i64>,
65    /// First tradeId
66    #[serde(rename = "firstId", skip_serializing_if = "Option::is_none")]
67    pub first_id: Option<i64>,
68    /// Last tradeId
69    #[serde(rename = "lastId", skip_serializing_if = "Option::is_none")]
70    pub last_id: Option<i64>,
71    /// Trade count
72    #[serde(rename = "count", skip_serializing_if = "Option::is_none")]
73    pub count: Option<i64>,
74}
75
76impl Ticker24hrResponse2Inner {
77    #[must_use]
78    pub fn new() -> Ticker24hrResponse2Inner {
79        Ticker24hrResponse2Inner {
80            symbol: None,
81            price_change: None,
82            price_change_percent: None,
83            weighted_avg_price: None,
84            prev_close_price: None,
85            last_price: None,
86            last_qty: None,
87            bid_price: None,
88            bid_qty: None,
89            ask_price: None,
90            ask_qty: None,
91            open_price: None,
92            high_price: None,
93            low_price: None,
94            volume: None,
95            quote_volume: None,
96            open_time: None,
97            close_time: None,
98            first_id: None,
99            last_id: None,
100            count: None,
101        }
102    }
103}