pub struct CollateralInfo {Show 13 fields
pub available_to_borrow: String,
pub free_borrowing_amount: f64,
pub free_borrow_amount: f64,
pub max_borrowing_amount: f64,
pub hourly_borrow_rate: f64,
pub borrow_usage_rate: f64,
pub collateral_switch: bool,
pub borrow_amount: f64,
pub borrowable: bool,
pub currency: String,
pub margin_collateral: bool,
pub free_borrowing_limit: String,
pub collateral_ratio: String,
}Expand description
Represents collateral information for a single coin.
Details the collateral eligibility, borrowing limits, and rates for a specific coin. Bots use this to determine which coins to use as collateral and manage borrowing costs.
Fields§
§available_to_borrow: StringThe amount available to borrow for the coin.
The total borrowing capacity for the coin, in the coin’s units. Bots use this to assess borrowing potential for margin trading.
free_borrowing_amount: f64The free borrowing amount available.
The portion of the borrowing capacity that is interest-free, if any. Bots use this to optimize borrowing by prioritizing free borrowing.
free_borrow_amount: f64The free borrow amount limit.
The maximum interest-free borrowing limit for the coin. Bots use this to plan borrowing strategies within free limits.
max_borrowing_amount: f64The maximum borrowing amount for the coin.
The total borrowing limit for the coin, including interest-bearing amounts. Bots use this to ensure borrowing stays within account limits.
hourly_borrow_rate: f64The hourly borrow rate for the coin.
The interest rate applied to borrowed amounts per hour, as a decimal (e.g., 0.0001 for 0.01%). Bots use this to calculate borrowing costs.
borrow_usage_rate: f64The borrow usage rate.
The percentage of the borrowing limit currently utilized. Bots use this to monitor borrowing capacity and avoid over-leveraging.
collateral_switch: boolWhether the coin is enabled as collateral.
true if the coin can be used as collateral for margin trading, false otherwise. Bots use this to select appropriate collateral assets.
borrow_amount: f64The current borrowed amount for the coin.
The total amount of the coin currently borrowed. Bots use this to track liabilities and calculate interest costs.
borrowable: boolWhether the coin is borrowable.
true if the coin can be borrowed for margin trading, false otherwise. Bots use this to determine borrowing eligibility.
currency: StringThe currency of the coin (e.g., “USDT”).
Specifies the coin type. Bots should verify this matches the expected currency for their margin type.
margin_collateral: boolWhether the coin is used as margin collateral.
true if the coin is actively used as collateral, false otherwise. Bots use this to confirm collateral allocation.
free_borrowing_limit: StringThe free borrowing limit as a string.
The maximum interest-free borrowing limit for the coin, represented as a string. Bots can use this for precise borrowing calculations.
collateral_ratio: StringThe collateral ratio for the coin.
The ratio at which the coin contributes to margin requirements (e.g., “0.9” for 90%). Bots use this to calculate effective collateral value.
Trait Implementations§
Source§impl Clone for CollateralInfo
impl Clone for CollateralInfo
Source§fn clone(&self) -> CollateralInfo
fn clone(&self) -> CollateralInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more