pub struct MarginTradeCoeffResponse {
pub amount: Value,
pub borrow_limit: Value,
pub force_liquidation_bar: Option<String>,
pub margin_call_bar: Option<String>,
pub normal_bar: Option<String>,
}
Expand description
MarginTradeCoeffResponse
JSON schema
{
"type": "object",
"required": [
"amount",
"borrowLimit"
],
"properties": {
"forceLiquidationBar": {
"description": "Liquidation Margin Ratio",
"examples": [
"1.1"
],
"type": "string"
},
"marginCallBar": {
"description": "Max borrowable amount limited by the account level",
"examples": [
"1.3"
],
"type": "string"
},
"normalBar": {
"description": "Account's currently max borrowable amount with sufficient system availability",
"examples": [
"1.5"
],
"type": "string"
}
}
}
Fields§
§amount: Value
§borrow_limit: Value
§force_liquidation_bar: Option<String>
Liquidation Margin Ratio
margin_call_bar: Option<String>
Max borrowable amount limited by the account level
normal_bar: Option<String>
Account’s currently max borrowable amount with sufficient system availability
Trait Implementations§
Source§impl Clone for MarginTradeCoeffResponse
impl Clone for MarginTradeCoeffResponse
Source§fn clone(&self) -> MarginTradeCoeffResponse
fn clone(&self) -> MarginTradeCoeffResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MarginTradeCoeffResponse
impl Debug for MarginTradeCoeffResponse
Source§impl<'de> Deserialize<'de> for MarginTradeCoeffResponse
impl<'de> Deserialize<'de> for MarginTradeCoeffResponse
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 From<&MarginTradeCoeffResponse> for MarginTradeCoeffResponse
impl From<&MarginTradeCoeffResponse> for MarginTradeCoeffResponse
Source§fn from(value: &MarginTradeCoeffResponse) -> Self
fn from(value: &MarginTradeCoeffResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MarginTradeCoeffResponse
impl RefUnwindSafe for MarginTradeCoeffResponse
impl Send for MarginTradeCoeffResponse
impl Sync for MarginTradeCoeffResponse
impl Unpin for MarginTradeCoeffResponse
impl UnwindSafe for MarginTradeCoeffResponse
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