bybit/models/
liability_qty_data.rs

1use crate::prelude::*;
2
3/// Represents a single repayment record for a currency.
4///
5/// Details the amount repaid for a specific currency. Bots use this to confirm repayment amounts and update account balance calculations.
6#[derive(Debug, Serialize, Deserialize, Clone)]
7#[serde(rename_all = "camelCase")]
8pub struct LiabilityQtyData {
9    /// The currency of the repayment (e.g., "USDT").
10    ///
11    /// Specifies the currency used for the repayment. Bots should verify this matches the expected currency.
12    pub coin: String,
13
14    /// The quantity repaid.
15    ///
16    /// The amount of the currency repaid to reduce the borrowed liability. Bots use this to update liability tracking and account balances.
17    #[serde(with = "string_to_float")]
18    pub repayment_qty: f64,
19}