1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* Options WebSocket Market Streams
*
* Access market data, manage accounts, and trade Binance Options.
*
* 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::websocket_streams::models;
use serde::{Deserialize, Deserializer, Serialize, de::Error};
use serde_json::Value;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RiskLevelChange {
/// Event Time
#[serde(rename = "E", skip_serializing_if = "Option::is_none")]
pub e_uppercase: Option<i64>,
/// Risk level. This feature only applies to VIP and Market Maker accounts. Risk level is re-evaluated on: funds transfer, trade fill, option expiry.
#[serde(rename = "s", skip_serializing_if = "Option::is_none")]
pub s: Option<String>,
/// Margin balance
#[serde(rename = "mb", skip_serializing_if = "Option::is_none")]
pub mb: Option<String>,
/// Maintenance margin
#[serde(rename = "mm", skip_serializing_if = "Option::is_none")]
pub mm: Option<String>,
}
impl RiskLevelChange {
#[must_use]
pub fn new() -> RiskLevelChange {
RiskLevelChange {
e_uppercase: None,
s: None,
mb: None,
mm: None,
}
}
}