pub struct IsolatedMarginAccountInfoAssetsItem {
pub base_asset: IsolatedMarginAccountInfoAssetsItemBaseAsset,
pub enabled: bool,
pub index_price: String,
pub isolated_created: bool,
pub liquidate_price: String,
pub liquidate_rate: String,
pub margin_level: String,
pub margin_level_status: String,
pub margin_ratio: String,
pub quote_asset: IsolatedMarginAccountInfoAssetsItemQuoteAsset,
pub symbol: String,
pub trade_enabled: bool,
}
Expand description
IsolatedMarginAccountInfoAssetsItem
JSON schema
{
"type": "object",
"required": [
"baseAsset",
"enabled",
"indexPrice",
"isolatedCreated",
"liquidatePrice",
"liquidateRate",
"marginLevel",
"marginLevelStatus",
"marginRatio",
"quoteAsset",
"symbol",
"tradeEnabled"
],
"properties": {
"baseAsset": {
"type": "object",
"required": [
"asset",
"borrowEnabled",
"borrowed",
"free",
"interest",
"locked",
"netAsset",
"netAssetOfBtc",
"repayEnabled",
"totalAsset"
],
"properties": {
"asset": {
"examples": [
"BTC"
],
"type": "string"
},
"borrowEnabled": {
"type": "boolean"
},
"borrowed": {
"examples": [
"0.00000000"
],
"type": "string"
},
"free": {
"examples": [
"0.00000000"
],
"type": "string"
},
"interest": {
"examples": [
"0.00000000"
],
"type": "string"
},
"locked": {
"examples": [
"0.00000000"
],
"type": "string"
},
"netAsset": {
"examples": [
"0.00000000"
],
"type": "string"
},
"netAssetOfBtc": {
"examples": [
"0.00000000"
],
"type": "string"
},
"repayEnabled": {
"type": "boolean"
},
"totalAsset": {
"examples": [
"0.00000000"
],
"type": "string"
}
}
},
"enabled": {
"description": "true-enabled, false-disabled",
"type": "boolean"
},
"indexPrice": {
"examples": [
"10000.00000000"
],
"type": "string"
},
"isolatedCreated": {
"type": "boolean"
},
"liquidatePrice": {
"examples": [
"1000.00000000"
],
"type": "string"
},
"liquidateRate": {
"examples": [
"1.00000000"
],
"type": "string"
},
"marginLevel": {
"examples": [
"0.00000000"
],
"type": "string"
},
"marginLevelStatus": {
"description": "\"EXCESSIVE\", \"NORMAL\", \"MARGIN_CALL\", \"PRE_LIQUIDATION\", \"FORCE_LIQUIDATION\"",
"examples": [
"EXCESSIVE"
],
"type": "string"
},
"marginRatio": {
"examples": [
"0.00000000"
],
"type": "string"
},
"quoteAsset": {
"type": "object",
"required": [
"asset",
"borrowEnabled",
"borrowed",
"free",
"interest",
"locked",
"netAsset",
"netAssetOfBtc",
"repayEnabled",
"totalAsset"
],
"properties": {
"asset": {
"examples": [
"USDT"
],
"type": "string"
},
"borrowEnabled": {
"type": "boolean"
},
"borrowed": {
"examples": [
"0.00000000"
],
"type": "string"
},
"free": {
"examples": [
"0.00000000"
],
"type": "string"
},
"interest": {
"examples": [
"0.00000000"
],
"type": "string"
},
"locked": {
"examples": [
"0.00000000"
],
"type": "string"
},
"netAsset": {
"examples": [
"0.00000000"
],
"type": "string"
},
"netAssetOfBtc": {
"examples": [
"0.00000000"
],
"type": "string"
},
"repayEnabled": {
"type": "boolean"
},
"totalAsset": {
"examples": [
"0.00000000"
],
"type": "string"
}
}
},
"symbol": {
"examples": [
"BTCUSDT"
],
"type": "string"
},
"tradeEnabled": {
"type": "boolean"
}
}
}
Fields§
§base_asset: IsolatedMarginAccountInfoAssetsItemBaseAsset
§enabled: bool
true-enabled, false-disabled
index_price: String
§isolated_created: bool
§liquidate_price: String
§liquidate_rate: String
§margin_level: String
§margin_level_status: String
“EXCESSIVE”, “NORMAL”, “MARGIN_CALL”, “PRE_LIQUIDATION”, “FORCE_LIQUIDATION”
margin_ratio: String
§quote_asset: IsolatedMarginAccountInfoAssetsItemQuoteAsset
§symbol: String
§trade_enabled: bool
Trait Implementations§
Source§impl Clone for IsolatedMarginAccountInfoAssetsItem
impl Clone for IsolatedMarginAccountInfoAssetsItem
Source§fn clone(&self) -> IsolatedMarginAccountInfoAssetsItem
fn clone(&self) -> IsolatedMarginAccountInfoAssetsItem
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<'de> Deserialize<'de> for IsolatedMarginAccountInfoAssetsItem
impl<'de> Deserialize<'de> for IsolatedMarginAccountInfoAssetsItem
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<&IsolatedMarginAccountInfoAssetsItem> for IsolatedMarginAccountInfoAssetsItem
impl From<&IsolatedMarginAccountInfoAssetsItem> for IsolatedMarginAccountInfoAssetsItem
Source§fn from(value: &IsolatedMarginAccountInfoAssetsItem) -> Self
fn from(value: &IsolatedMarginAccountInfoAssetsItem) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IsolatedMarginAccountInfoAssetsItem
impl RefUnwindSafe for IsolatedMarginAccountInfoAssetsItem
impl Send for IsolatedMarginAccountInfoAssetsItem
impl Sync for IsolatedMarginAccountInfoAssetsItem
impl Unpin for IsolatedMarginAccountInfoAssetsItem
impl UnwindSafe for IsolatedMarginAccountInfoAssetsItem
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