Skip to main content

binance_sdk/spot/rest_api/models/
ticker24hr_response2_inner.rs

1/*
2 * Binance Spot REST API
3 *
4 * OpenAPI Specifications for the Binance Spot REST API
5 *
6 * API documents:
7 * - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md)
8 * - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information)
9 *
10 *
11 * The version of the OpenAPI document: 1.0.0
12 *
13 *
14 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15 * https://openapi-generator.tech
16 * Do not edit the class manually.
17 */
18
19#![allow(unused_imports)]
20use crate::spot::rest_api::models;
21use serde::{Deserialize, Serialize};
22
23#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
24pub struct Ticker24hrResponse2Inner {
25    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
26    pub symbol: Option<String>,
27    #[serde(rename = "priceChange", skip_serializing_if = "Option::is_none")]
28    pub price_change: Option<String>,
29    #[serde(rename = "priceChangePercent", skip_serializing_if = "Option::is_none")]
30    pub price_change_percent: Option<String>,
31    #[serde(rename = "weightedAvgPrice", skip_serializing_if = "Option::is_none")]
32    pub weighted_avg_price: Option<String>,
33    #[serde(rename = "prevClosePrice", skip_serializing_if = "Option::is_none")]
34    pub prev_close_price: Option<String>,
35    #[serde(rename = "lastPrice", skip_serializing_if = "Option::is_none")]
36    pub last_price: Option<String>,
37    #[serde(rename = "lastQty", skip_serializing_if = "Option::is_none")]
38    pub last_qty: Option<String>,
39    #[serde(rename = "bidPrice", skip_serializing_if = "Option::is_none")]
40    pub bid_price: Option<String>,
41    #[serde(rename = "bidQty", skip_serializing_if = "Option::is_none")]
42    pub bid_qty: Option<String>,
43    #[serde(rename = "askPrice", skip_serializing_if = "Option::is_none")]
44    pub ask_price: Option<String>,
45    #[serde(rename = "askQty", skip_serializing_if = "Option::is_none")]
46    pub ask_qty: Option<String>,
47    #[serde(rename = "openPrice", skip_serializing_if = "Option::is_none")]
48    pub open_price: Option<String>,
49    #[serde(rename = "highPrice", skip_serializing_if = "Option::is_none")]
50    pub high_price: Option<String>,
51    #[serde(rename = "lowPrice", skip_serializing_if = "Option::is_none")]
52    pub low_price: Option<String>,
53    #[serde(rename = "volume", skip_serializing_if = "Option::is_none")]
54    pub volume: Option<String>,
55    #[serde(rename = "quoteVolume", skip_serializing_if = "Option::is_none")]
56    pub quote_volume: Option<String>,
57    #[serde(rename = "openTime", skip_serializing_if = "Option::is_none")]
58    pub open_time: Option<i64>,
59    #[serde(rename = "closeTime", skip_serializing_if = "Option::is_none")]
60    pub close_time: Option<i64>,
61    #[serde(rename = "firstId", skip_serializing_if = "Option::is_none")]
62    pub first_id: Option<i64>,
63    #[serde(rename = "lastId", skip_serializing_if = "Option::is_none")]
64    pub last_id: Option<i64>,
65    #[serde(rename = "count", skip_serializing_if = "Option::is_none")]
66    pub count: Option<i64>,
67}
68
69impl Ticker24hrResponse2Inner {
70    #[must_use]
71    pub fn new() -> Ticker24hrResponse2Inner {
72        Ticker24hrResponse2Inner {
73            symbol: None,
74            price_change: None,
75            price_change_percent: None,
76            weighted_avg_price: None,
77            prev_close_price: None,
78            last_price: None,
79            last_qty: None,
80            bid_price: None,
81            bid_qty: None,
82            ask_price: None,
83            ask_qty: None,
84            open_price: None,
85            high_price: None,
86            low_price: None,
87            volume: None,
88            quote_volume: None,
89            open_time: None,
90            close_time: None,
91            first_id: None,
92            last_id: None,
93            count: None,
94        }
95    }
96}