pub struct GetMasterAccountPortfolioDetailsResponse {
pub error: Vec<Value>,
pub errors: Vec<Value>,
pub result: Option<GetMasterAccountPortfolioDetailsResponseResult>,
}Expand description
GetMasterAccountPortfolioDetailsResponse
JSON schema
{
"type": "object",
"properties": {
"error": {
"type": "array",
"items": {}
},
"errors": {
"type": "array",
"items": {}
},
"result": {
"type": "object",
"required": [
"assets",
"currency",
"timestamp"
],
"properties": {
"assets": {
"type": "array",
"items": {
"type": "object",
"required": [
"asset",
"cash_balance",
"cash_value",
"held_orders_spot",
"index_price"
],
"properties": {
"asset": {
"type": "string",
"maxLength": 16
},
"avail_trade": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"avail_trade_value": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"avg_entry_price": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"cash_balance": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"cash_value": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"class": {
"type": "string",
"enum": [
"bond",
"commodity",
"currency",
"derivative",
"stock"
]
},
"cost_basis": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"credit_line_available": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"credit_line_used": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"held_orders_spot": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"index_price": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"lots_upnl": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
}
}
}
},
"currency": {
"type": "string",
"maxLength": 16
},
"timestamp": {
"type": "string",
"format": "date-time"
}
}
}
}
}Fields§
§error: Vec<Value>§errors: Vec<Value>§result: Option<GetMasterAccountPortfolioDetailsResponseResult>Trait Implementations§
Source§impl Clone for GetMasterAccountPortfolioDetailsResponse
impl Clone for GetMasterAccountPortfolioDetailsResponse
Source§fn clone(&self) -> GetMasterAccountPortfolioDetailsResponse
fn clone(&self) -> GetMasterAccountPortfolioDetailsResponse
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<'de> Deserialize<'de> for GetMasterAccountPortfolioDetailsResponse
impl<'de> Deserialize<'de> for GetMasterAccountPortfolioDetailsResponse
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<&GetMasterAccountPortfolioDetailsResponse> for GetMasterAccountPortfolioDetailsResponse
impl From<&GetMasterAccountPortfolioDetailsResponse> for GetMasterAccountPortfolioDetailsResponse
Source§fn from(value: &GetMasterAccountPortfolioDetailsResponse) -> Self
fn from(value: &GetMasterAccountPortfolioDetailsResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GetMasterAccountPortfolioDetailsResponse
impl RefUnwindSafe for GetMasterAccountPortfolioDetailsResponse
impl Send for GetMasterAccountPortfolioDetailsResponse
impl Sync for GetMasterAccountPortfolioDetailsResponse
impl Unpin for GetMasterAccountPortfolioDetailsResponse
impl UnsafeUnpin for GetMasterAccountPortfolioDetailsResponse
impl UnwindSafe for GetMasterAccountPortfolioDetailsResponse
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