Skip to main content

binance_sdk/spot/rest_api/models/
ticker_response1.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 TickerResponse1 {
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 = "openPrice", skip_serializing_if = "Option::is_none")]
34    pub open_price: Option<String>,
35    #[serde(rename = "highPrice", skip_serializing_if = "Option::is_none")]
36    pub high_price: Option<String>,
37    #[serde(rename = "lowPrice", skip_serializing_if = "Option::is_none")]
38    pub low_price: Option<String>,
39    #[serde(rename = "lastPrice", skip_serializing_if = "Option::is_none")]
40    pub last_price: Option<String>,
41    #[serde(rename = "volume", skip_serializing_if = "Option::is_none")]
42    pub volume: Option<String>,
43    #[serde(rename = "quoteVolume", skip_serializing_if = "Option::is_none")]
44    pub quote_volume: Option<String>,
45    #[serde(rename = "openTime", skip_serializing_if = "Option::is_none")]
46    pub open_time: Option<i64>,
47    #[serde(rename = "closeTime", skip_serializing_if = "Option::is_none")]
48    pub close_time: Option<i64>,
49    #[serde(rename = "firstId", skip_serializing_if = "Option::is_none")]
50    pub first_id: Option<i64>,
51    #[serde(rename = "lastId", skip_serializing_if = "Option::is_none")]
52    pub last_id: Option<i64>,
53    #[serde(rename = "count", skip_serializing_if = "Option::is_none")]
54    pub count: Option<i64>,
55}
56
57impl TickerResponse1 {
58    #[must_use]
59    pub fn new() -> TickerResponse1 {
60        TickerResponse1 {
61            symbol: None,
62            price_change: None,
63            price_change_percent: None,
64            weighted_avg_price: None,
65            open_price: None,
66            high_price: None,
67            low_price: None,
68            last_price: None,
69            volume: None,
70            quote_volume: None,
71            open_time: None,
72            close_time: None,
73            first_id: None,
74            last_id: None,
75            count: None,
76        }
77    }
78}