Skip to main content

binance_sdk/spot/websocket_api/models/
ticker24hr_response2_result_inner.rs

1/*
2 * Spot WebSocket 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::websocket_api::models;
16use serde::{Deserialize, Deserializer, Serialize, de::Error};
17use serde_json::Value;
18
19#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
20pub struct Ticker24hrResponse2ResultInner {
21    /// Symbol Name
22    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
23    pub symbol: Option<String>,
24    #[serde(rename = "priceChange", skip_serializing_if = "Option::is_none")]
25    pub price_change: Option<String>,
26    #[serde(rename = "priceChangePercent", skip_serializing_if = "Option::is_none")]
27    pub price_change_percent: Option<String>,
28    #[serde(rename = "weightedAvgPrice", skip_serializing_if = "Option::is_none")]
29    pub weighted_avg_price: Option<String>,
30    #[serde(rename = "prevClosePrice", skip_serializing_if = "Option::is_none")]
31    pub prev_close_price: Option<String>,
32    /// Closing price of the interval
33    #[serde(rename = "lastPrice", skip_serializing_if = "Option::is_none")]
34    pub last_price: Option<String>,
35    #[serde(rename = "lastQty", skip_serializing_if = "Option::is_none")]
36    pub last_qty: Option<String>,
37    #[serde(rename = "bidPrice", skip_serializing_if = "Option::is_none")]
38    pub bid_price: Option<String>,
39    #[serde(rename = "bidQty", skip_serializing_if = "Option::is_none")]
40    pub bid_qty: Option<String>,
41    #[serde(rename = "askPrice", skip_serializing_if = "Option::is_none")]
42    pub ask_price: Option<String>,
43    #[serde(rename = "askQty", skip_serializing_if = "Option::is_none")]
44    pub ask_qty: Option<String>,
45    /// Opening price of the Interval
46    #[serde(rename = "openPrice", skip_serializing_if = "Option::is_none")]
47    pub open_price: Option<String>,
48    /// Highest price in the interval
49    #[serde(rename = "highPrice", skip_serializing_if = "Option::is_none")]
50    pub high_price: Option<String>,
51    /// Lowest  price in the interval
52    #[serde(rename = "lowPrice", skip_serializing_if = "Option::is_none")]
53    pub low_price: Option<String>,
54    /// Total trade volume (in base asset)
55    #[serde(rename = "volume", skip_serializing_if = "Option::is_none")]
56    pub volume: Option<String>,
57    /// Total trade volume (in quote asset)
58    #[serde(rename = "quoteVolume", skip_serializing_if = "Option::is_none")]
59    pub quote_volume: Option<String>,
60    /// Start of the ticker interval
61    #[serde(rename = "openTime", skip_serializing_if = "Option::is_none")]
62    pub open_time: Option<i64>,
63    /// End of the ticker interval
64    #[serde(rename = "closeTime", skip_serializing_if = "Option::is_none")]
65    pub close_time: Option<i64>,
66    /// First tradeId
67    #[serde(rename = "firstId", skip_serializing_if = "Option::is_none")]
68    pub first_id: Option<i64>,
69    /// Last tradeId
70    #[serde(rename = "lastId", skip_serializing_if = "Option::is_none")]
71    pub last_id: Option<i64>,
72    /// Trade count
73    #[serde(rename = "count", skip_serializing_if = "Option::is_none")]
74    pub count: Option<i64>,
75}
76
77impl Ticker24hrResponse2ResultInner {
78    #[must_use]
79    pub fn new() -> Ticker24hrResponse2ResultInner {
80        Ticker24hrResponse2ResultInner {
81            symbol: None,
82            price_change: None,
83            price_change_percent: None,
84            weighted_avg_price: None,
85            prev_close_price: None,
86            last_price: None,
87            last_qty: None,
88            bid_price: None,
89            bid_qty: None,
90            ask_price: None,
91            ask_qty: None,
92            open_price: None,
93            high_price: None,
94            low_price: None,
95            volume: None,
96            quote_volume: None,
97            open_time: None,
98            close_time: None,
99            first_id: None,
100            last_id: None,
101            count: None,
102        }
103    }
104}