pub struct SubAccountMarginAccountResponse {
pub email: String,
pub margin_level: String,
pub margin_trade_coeff_vo: SubAccountMarginAccountResponseMarginTradeCoeffVo,
pub margin_user_asset_vo_list: Vec<SubAccountMarginAccountResponseMarginUserAssetVoListItem>,
pub total_asset_of_btc: String,
pub total_liability_of_btc: String,
pub total_net_asset_of_btc: String,
}
Expand description
SubAccountMarginAccountResponse
JSON schema
{
"type": "object",
"required": [
"email",
"marginLevel",
"marginTradeCoeffVo",
"marginUserAssetVoList",
"totalAssetOfBtc",
"totalLiabilityOfBtc",
"totalNetAssetOfBtc"
],
"properties": {
"email": {
"examples": [
"123@test.com"
],
"type": "string"
},
"marginLevel": {
"examples": [
"11.64405625"
],
"type": "string"
},
"marginTradeCoeffVo": {
"type": "object",
"required": [
"forceLiquidationBar",
"marginCallBar",
"normalBar"
],
"properties": {
"forceLiquidationBar": {
"description": "Liquidation margin ratio",
"examples": [
"1.10000000"
],
"type": "string"
},
"marginCallBar": {
"description": "Margin call margin ratio",
"examples": [
"1.50000000"
],
"type": "string"
},
"normalBar": {
"description": "Initial margin ratio",
"examples": [
"2.00000000"
],
"type": "string"
}
}
},
"marginUserAssetVoList": {
"type": "array",
"items": {
"type": "object",
"required": [
"asset",
"borrowed",
"free",
"interest",
"locked",
"netAsset"
],
"properties": {
"asset": {
"examples": [
"BTC"
],
"type": "string"
},
"borrowed": {
"examples": [
"0.00000000"
],
"type": "string"
},
"free": {
"examples": [
"0.00499500"
],
"type": "string"
},
"interest": {
"examples": [
"0.00000000"
],
"type": "string"
},
"locked": {
"examples": [
"0.00000000"
],
"type": "string"
},
"netAsset": {
"examples": [
"0.00499500"
],
"type": "string"
}
}
}
},
"totalAssetOfBtc": {
"examples": [
"6.82728457"
],
"type": "string"
},
"totalLiabilityOfBtc": {
"examples": [
"0.58633215"
],
"type": "string"
},
"totalNetAssetOfBtc": {
"examples": [
"6.24095242"
],
"type": "string"
}
}
}
Fields§
§email: String
§margin_level: String
§margin_trade_coeff_vo: SubAccountMarginAccountResponseMarginTradeCoeffVo
§margin_user_asset_vo_list: Vec<SubAccountMarginAccountResponseMarginUserAssetVoListItem>
§total_asset_of_btc: String
§total_liability_of_btc: String
§total_net_asset_of_btc: String
Trait Implementations§
Source§impl Clone for SubAccountMarginAccountResponse
impl Clone for SubAccountMarginAccountResponse
Source§fn clone(&self) -> SubAccountMarginAccountResponse
fn clone(&self) -> SubAccountMarginAccountResponse
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 SubAccountMarginAccountResponse
impl<'de> Deserialize<'de> for SubAccountMarginAccountResponse
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<&SubAccountMarginAccountResponse> for SubAccountMarginAccountResponse
impl From<&SubAccountMarginAccountResponse> for SubAccountMarginAccountResponse
Source§fn from(value: &SubAccountMarginAccountResponse) -> Self
fn from(value: &SubAccountMarginAccountResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SubAccountMarginAccountResponse
impl RefUnwindSafe for SubAccountMarginAccountResponse
impl Send for SubAccountMarginAccountResponse
impl Sync for SubAccountMarginAccountResponse
impl Unpin for SubAccountMarginAccountResponse
impl UnwindSafe for SubAccountMarginAccountResponse
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