Skip to main content

bybit/models/
sub_deposit_record_request.rs

1use crate::prelude::*;
2
3/// Request for querying subaccount's deposit records (on-chain)
4#[derive(Debug, Serialize, Deserialize, Clone)]
5pub struct SubDepositRecordRequest<'a> {
6    /// Internal ID: Can be used to uniquely identify and filter the deposit.
7    /// When combined with other parameters, this field takes the highest priority
8    #[serde(skip_serializing_if = "Option::is_none")]
9    pub id: Option<&'a str>,
10
11    /// Transaction ID: Please note that data generated before Jan 1, 2024 cannot be queried using txID
12    #[serde(rename = "txID", skip_serializing_if = "Option::is_none")]
13    pub tx_id: Option<&'a str>,
14
15    /// Sub UID
16    #[serde(rename = "subMemberId")]
17    pub sub_member_id: &'a str,
18
19    /// Coin, uppercase only
20    #[serde(skip_serializing_if = "Option::is_none")]
21    pub coin: Option<&'a str>,
22
23    /// The start timestamp (ms)
24    /// Note: the query logic is actually effective based on **second** level
25    #[serde(rename = "startTime", skip_serializing_if = "Option::is_none")]
26    pub start_time: Option<u64>,
27
28    /// The end timestamp (ms)
29    /// Note: the query logic is actually effective based on **second** level
30    #[serde(rename = "endTime", skip_serializing_if = "Option::is_none")]
31    pub end_time: Option<u64>,
32
33    /// Limit for data size per page. [`1`, `50`]. Default: `50`
34    #[serde(skip_serializing_if = "Option::is_none")]
35    pub limit: Option<u32>,
36
37    /// Cursor. Use the `nextPageCursor` token from the response to retrieve the next page of the result set
38    #[serde(skip_serializing_if = "Option::is_none")]
39    pub cursor: Option<&'a str>,
40}