bybit/models/switch_list_data.rs
1use crate::prelude::*;
2
3/// Represents a single collateral coin status update.
4///
5/// Details the collateral status for a specific coin in a batch setting request. Bots use this to confirm the outcome for each coin.
6#[derive(Debug, Serialize, Deserialize, Clone)]
7#[serde(rename_all = "camelCase")]
8pub struct SwitchListData {
9 /// The currency of the coin (e.g., "USDT").
10 ///
11 /// Specifies the coin whose collateral status was updated. Bots should verify this matches the requested coin.
12 pub coin: String,
13
14 /// The collateral switch status (e.g., "ON", "OFF").
15 ///
16 /// Indicates whether the coin is enabled (`ON`) or disabled (`OFF`) as collateral. Bots use this to confirm the new collateral setting.
17 pub collateral_switch: String,
18}