Skip to main content

rust_okx/api/account/responses/
bills.rs

1use serde::Deserialize;
2
3use crate::model::NumberString;
4
5/// Account bill row.
6#[derive(Debug, Clone, Deserialize)]
7#[serde(rename_all = "camelCase")]
8#[non_exhaustive]
9pub struct AccountBill {
10    /// Bill ID.
11    #[serde(default)]
12    pub bill_id: String,
13    /// Instrument type.
14    #[serde(default)]
15    pub inst_type: String,
16    /// Instrument ID.
17    #[serde(default)]
18    pub inst_id: String,
19    /// Currency.
20    #[serde(default)]
21    pub ccy: String,
22    /// Margin mode.
23    #[serde(default)]
24    pub mgn_mode: String,
25    /// Bill type.
26    #[serde(rename = "type", default)]
27    pub bill_type: String,
28    /// Bill subtype.
29    #[serde(default)]
30    pub sub_type: String,
31    /// Balance change.
32    #[serde(default)]
33    pub sz: NumberString,
34    /// Balance after the change.
35    #[serde(default)]
36    pub bal: NumberString,
37    /// Timestamp (Unix milliseconds).
38    #[serde(default)]
39    pub ts: NumberString,
40}