Skip to main content

bybit/models/
coin_chain_info.rs

1use serde::{Deserialize, Serialize};
2
3/// Chain information for a coin
4#[derive(Debug, Serialize, Deserialize, Clone)]
5pub struct CoinChainInfo {
6    /// Chain
7    pub chain: String,
8    /// Chain type
9    #[serde(rename = "chainType")]
10    pub chain_type: String,
11    /// Number of confirmations for deposit
12    pub confirmation: String,
13    /// Withdraw fee. If empty, coin does not support withdrawal
14    #[serde(rename = "withdrawFee")]
15    pub withdraw_fee: String,
16    /// Minimum deposit
17    #[serde(rename = "depositMin")]
18    pub deposit_min: String,
19    /// Minimum withdraw
20    #[serde(rename = "withdrawMin")]
21    pub withdraw_min: String,
22    /// The precision of withdraw or deposit
23    #[serde(rename = "minAccuracy")]
24    pub min_accuracy: String,
25    /// The chain status of deposit. `0`: suspend. `1`: normal
26    #[serde(rename = "chainDeposit")]
27    pub chain_deposit: String,
28    /// The chain status of withdraw. `0`: suspend. `1`: normal
29    #[serde(rename = "chainWithdraw")]
30    pub chain_withdraw: String,
31    /// The withdraw fee percentage. It is a real figure, e.g., 0.022 means 2.2%
32    #[serde(rename = "withdrawPercentageFee")]
33    pub withdraw_percentage_fee: String,
34    /// Contract address. `""` means no contract address
35    #[serde(rename = "contractAddress")]
36    pub contract_address: String,
37    /// Number of security confirmations
38    #[serde(rename = "safeConfirmNumber")]
39    pub safe_confirm_number: String,
40}