pub struct IsolatedMarginAccountInfo {
pub assets: Vec<IsolatedMarginAccountInfoAssetsItem>,
pub total_asset_of_btc: String,
pub total_liability_of_btc: String,
pub total_net_asset_of_btc: String,
}
Expand description
IsolatedMarginAccountInfo
JSON schema
{
"type": "object",
"required": [
"assets",
"totalAssetOfBtc",
"totalLiabilityOfBtc",
"totalNetAssetOfBtc"
],
"properties": {
"assets": {
"type": "array",
"items": {
"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"
}
}
}
},
"totalAssetOfBtc": {
"examples": [
"0.00000000"
],
"type": "string"
},
"totalLiabilityOfBtc": {
"examples": [
"0.00000000"
],
"type": "string"
},
"totalNetAssetOfBtc": {
"examples": [
"0.00000000"
],
"type": "string"
}
}
}
Fields§
§assets: Vec<IsolatedMarginAccountInfoAssetsItem>
§total_asset_of_btc: String
§total_liability_of_btc: String
§total_net_asset_of_btc: String
Trait Implementations§
Source§impl Clone for IsolatedMarginAccountInfo
impl Clone for IsolatedMarginAccountInfo
Source§fn clone(&self) -> IsolatedMarginAccountInfo
fn clone(&self) -> IsolatedMarginAccountInfo
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 IsolatedMarginAccountInfo
impl Debug for IsolatedMarginAccountInfo
Source§impl<'de> Deserialize<'de> for IsolatedMarginAccountInfo
impl<'de> Deserialize<'de> for IsolatedMarginAccountInfo
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<&IsolatedMarginAccountInfo> for IsolatedMarginAccountInfo
impl From<&IsolatedMarginAccountInfo> for IsolatedMarginAccountInfo
Source§fn from(value: &IsolatedMarginAccountInfo) -> Self
fn from(value: &IsolatedMarginAccountInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IsolatedMarginAccountInfo
impl RefUnwindSafe for IsolatedMarginAccountInfo
impl Send for IsolatedMarginAccountInfo
impl Sync for IsolatedMarginAccountInfo
impl Unpin for IsolatedMarginAccountInfo
impl UnwindSafe for IsolatedMarginAccountInfo
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