bybit/models/single_coin_balance_request.rs
1use crate::prelude::*;
2
3/// Request for getting single coin balance
4#[derive(Debug, Serialize, Deserialize, Clone)]
5pub struct SingleCoinBalanceRequest<'a> {
6 /// UID. Required when querying sub UID balance with master api key
7 #[serde(rename = "memberId")]
8 pub member_id: Option<&'a str>,
9 /// UID. Required when querying the transferable balance between different UIDs
10 #[serde(rename = "toMemberId")]
11 pub to_member_id: Option<&'a str>,
12 /// Account type
13 #[serde(rename = "accountType")]
14 pub account_type: &'a str,
15 /// To account type. Required when querying the transferable balance between different account types
16 #[serde(rename = "toAccountType")]
17 pub to_account_type: Option<&'a str>,
18 /// Coin, uppercase only
19 pub coin: &'a str,
20 /// 0(default): not query bonus. 1: query bonus
21 #[serde(rename = "withBonus")]
22 pub with_bonus: Option<u8>,
23 /// Whether query delay withdraw/transfer safe amount
24 /// 0(default): false, 1: true
25 #[serde(rename = "withTransferSafeAmount")]
26 pub with_transfer_safe_amount: Option<u8>,
27 /// For OTC loan users in particular, you can check the transferable amount under risk level
28 /// 0(default): false, 1: true
29 /// toAccountType is mandatory
30 #[serde(rename = "withLtvTransferSafeAmount")]
31 pub with_ltv_transfer_safe_amount: Option<u8>,
32}