pub struct CollateralInfoEntry {Show 14 fields
pub currency: String,
pub hourly_borrow_rate: Decimal,
pub max_borrowing_amount: Decimal,
pub free_borrowing_limit: Decimal,
pub free_borrow_amount: Decimal,
pub borrow_amount: Decimal,
pub other_borrow_amount: Decimal,
pub available_to_borrow: Decimal,
pub borrowable: bool,
pub borrow_usage_rate: Decimal,
pub margin_collateral: bool,
pub collateral_switch: bool,
pub collateral_ratio: Option<Decimal>,
pub free_borrowing_amount: Option<String>,
}Expand description
Item of the list returned by GET /v5/account/collateral-info (Client::get_collateral_info).
Fields§
§currency: StringCurrency of the collateral
hourly_borrow_rate: DecimalHourly interest rate for borrowing
max_borrowing_amount: DecimalMaximum borrowable amount, shared across main and sub accounts
free_borrowing_limit: DecimalMaximum limit for interest-free borrowing
free_borrow_amount: DecimalAmount borrowed within the interest-free threshold
borrow_amount: DecimalCurrent borrow amount
other_borrow_amount: DecimalBorrowing amount from other accounts under the same main account
available_to_borrow: DecimalRemaining amount available to borrow
borrowable: boolWhether currency can be borrowed
borrow_usage_rate: DecimalBorrow usage ratio, e.g. 0.5 = 50%
margin_collateral: boolWhether usable as margin collateral
collateral_switch: boolWhether collateral is enabled by user
collateral_ratio: Option<Decimal>Deprecated. Refer to the tiered collateral ratio endpoint instead
free_borrowing_amount: Option<String>Deprecated. Always empty
Trait Implementations§
Source§impl Debug for CollateralInfoEntry
impl Debug for CollateralInfoEntry
Source§impl<'de> Deserialize<'de> for CollateralInfoEntry
impl<'de> Deserialize<'de> for CollateralInfoEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CollateralInfoEntry
impl PartialEq for CollateralInfoEntry
impl StructuralPartialEq for CollateralInfoEntry
Auto Trait Implementations§
impl Freeze for CollateralInfoEntry
impl RefUnwindSafe for CollateralInfoEntry
impl Send for CollateralInfoEntry
impl Sync for CollateralInfoEntry
impl Unpin for CollateralInfoEntry
impl UnsafeUnpin for CollateralInfoEntry
impl UnwindSafe for CollateralInfoEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more