Skip to main content

bybit/models/
single_coin_balance_response.rs

1use crate::prelude::*;
2
3/// Single coin balance response
4#[derive(Debug, Serialize, Deserialize, Clone)]
5pub struct SingleCoinBalanceResponse {
6    /// Account type
7    #[serde(rename = "accountType")]
8    pub account_type: String,
9    /// Biz type
10    #[serde(rename = "bizType")]
11    pub biz_type: i32,
12    /// Account ID
13    #[serde(rename = "accountId")]
14    pub account_id: String,
15    /// UID
16    #[serde(rename = "memberId")]
17    pub member_id: String,
18    /// Balance information
19    pub balance: CoinBalance,
20}
21
22/// Coin balance details
23#[derive(Debug, Serialize, Deserialize, Clone)]
24pub struct CoinBalance {
25    /// Coin
26    pub coin: String,
27    /// Wallet balance
28    #[serde(rename = "walletBalance")]
29    pub wallet_balance: String,
30    /// Transferable balance
31    #[serde(rename = "transferBalance")]
32    pub transfer_balance: String,
33    /// Bonus
34    pub bonus: String,
35    /// Safe amount to transfer. Keep "" if not query
36    #[serde(rename = "transferSafeAmount")]
37    pub transfer_safe_amount: String,
38    /// Transferable amount for ins loan account. Keep "" if not query
39    #[serde(rename = "ltvTransferSafeAmount")]
40    pub ltv_transfer_safe_amount: String,
41}