pub struct GetPositionRiskResponse {
pub index_price: Option<String>,
pub initial_margin_required: Option<String>,
pub liquidation_price: Option<String>,
pub maintenance_margin_required: Option<String>,
pub margin_ratio: Option<String>,
pub mark_price: Option<String>,
pub position_id: Option<String>,
pub unrealized_pnl: Option<String>,
pub updated_at: Option<String>,
}Expand description
GetPositionRiskResponse
JSON schema
{
"type": "object",
"properties": {
"indexPrice": {
"type": [
"string",
"null"
]
},
"initialMarginRequired": {
"description": "Initial margin required by this position at mark_price, honoring both its\n effective leverage and the market initial-margin floor. Zero when the\n position has no open exposure.",
"type": [
"string",
"null"
]
},
"liquidationPrice": {
"type": [
"string",
"null"
]
},
"maintenanceMarginRequired": {
"description": "Maintenance margin required by this position at mark_price using the\n market maintenance-margin rate. Zero when the position has no open exposure.",
"type": [
"string",
"null"
]
},
"marginRatio": {
"type": [
"string",
"null"
]
},
"markPrice": {
"type": [
"string",
"null"
]
},
"positionId": {
"type": [
"string",
"null"
]
},
"unrealizedPnl": {
"type": [
"string",
"null"
]
},
"updatedAt": {
"type": [
"string",
"null"
]
}
}
}Fields§
§index_price: Option<String>§initial_margin_required: Option<String>Initial margin required by this position at mark_price, honoring both its effective leverage and the market initial-margin floor. Zero when the position has no open exposure.
liquidation_price: Option<String>§maintenance_margin_required: Option<String>Maintenance margin required by this position at mark_price using the market maintenance-margin rate. Zero when the position has no open exposure.
margin_ratio: Option<String>§mark_price: Option<String>§position_id: Option<String>§unrealized_pnl: Option<String>§updated_at: Option<String>Trait Implementations§
Source§impl Clone for GetPositionRiskResponse
impl Clone for GetPositionRiskResponse
Source§fn clone(&self) -> GetPositionRiskResponse
fn clone(&self) -> GetPositionRiskResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GetPositionRiskResponse
impl Debug for GetPositionRiskResponse
Source§impl Default for GetPositionRiskResponse
impl Default for GetPositionRiskResponse
Source§impl<'de> Deserialize<'de> for GetPositionRiskResponse
impl<'de> Deserialize<'de> for GetPositionRiskResponse
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
Auto Trait Implementations§
impl Freeze for GetPositionRiskResponse
impl RefUnwindSafe for GetPositionRiskResponse
impl Send for GetPositionRiskResponse
impl Sync for GetPositionRiskResponse
impl Unpin for GetPositionRiskResponse
impl UnsafeUnpin for GetPositionRiskResponse
impl UnwindSafe for GetPositionRiskResponse
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