pub struct GetMasterAccountPortfolioHistoryResponse {
pub error: Vec<Value>,
pub errors: Vec<Value>,
pub result: Option<GetMasterAccountPortfolioHistoryResponseResult>,
}Expand description
GetMasterAccountPortfolioHistoryResponse
JSON schema
{
"type": "object",
"properties": {
"error": {
"type": "array",
"items": {}
},
"errors": {
"type": "array",
"items": {}
},
"result": {
"type": "object",
"required": [
"end_date",
"history",
"start_date"
],
"properties": {
"currency": {
"type": "string",
"maxLength": 16
},
"end_date": {
"type": "string",
"format": "date"
},
"history": {
"type": "array",
"items": {
"type": "object",
"required": [
"date"
],
"properties": {
"assets": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"balance": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
}
}
}
},
"date": {
"type": "string",
"format": "date"
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"total_balance": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"total_pnl": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"total_pnl_pct": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
}
}
}
},
"next_cursor": {
"type": "string"
},
"start_date": {
"type": "string",
"format": "date"
},
"total_pnl": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"total_pnl_pct": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
}
}
}
}
}Fields§
§error: Vec<Value>§errors: Vec<Value>§result: Option<GetMasterAccountPortfolioHistoryResponseResult>Trait Implementations§
Source§impl Clone for GetMasterAccountPortfolioHistoryResponse
impl Clone for GetMasterAccountPortfolioHistoryResponse
Source§fn clone(&self) -> GetMasterAccountPortfolioHistoryResponse
fn clone(&self) -> GetMasterAccountPortfolioHistoryResponse
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 GetMasterAccountPortfolioHistoryResponse
impl<'de> Deserialize<'de> for GetMasterAccountPortfolioHistoryResponse
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<&GetMasterAccountPortfolioHistoryResponse> for GetMasterAccountPortfolioHistoryResponse
impl From<&GetMasterAccountPortfolioHistoryResponse> for GetMasterAccountPortfolioHistoryResponse
Source§fn from(value: &GetMasterAccountPortfolioHistoryResponse) -> Self
fn from(value: &GetMasterAccountPortfolioHistoryResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GetMasterAccountPortfolioHistoryResponse
impl RefUnwindSafe for GetMasterAccountPortfolioHistoryResponse
impl Send for GetMasterAccountPortfolioHistoryResponse
impl Sync for GetMasterAccountPortfolioHistoryResponse
impl Unpin for GetMasterAccountPortfolioHistoryResponse
impl UnsafeUnpin for GetMasterAccountPortfolioHistoryResponse
impl UnwindSafe for GetMasterAccountPortfolioHistoryResponse
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