pub struct GetPortfolioRealizedPnlResponse {
pub best_day: Option<PortfolioBestDay>,
pub bucket_interval: Option<GetPortfolioRealizedPnlResponseBucketInterval>,
pub closed_trades: Option<PortfolioClosedTradeStats>,
pub points: Option<Vec<PortfolioRealizedPnlPoint>>,
pub totals: Option<PortfolioRealizedTotals>,
pub window: Option<PortfolioSeriesWindow>,
}Expand description
GetPortfolioRealizedPnlResponse
JSON schema
{
"type": "object",
"properties": {
"bestDay": {
"$ref": "#/components/schemas/PortfolioBestDay"
},
"bucketInterval": {
"type": [
"string",
"null"
],
"enum": [
"1h",
"1d"
]
},
"closedTrades": {
"$ref": "#/components/schemas/PortfolioClosedTradeStats"
},
"points": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/PortfolioRealizedPnlPoint"
}
},
"totals": {
"$ref": "#/components/schemas/PortfolioRealizedTotals"
},
"window": {
"$ref": "#/components/schemas/PortfolioSeriesWindow"
}
}
}Fields§
§best_day: Option<PortfolioBestDay>§bucket_interval: Option<GetPortfolioRealizedPnlResponseBucketInterval>§closed_trades: Option<PortfolioClosedTradeStats>§points: Option<Vec<PortfolioRealizedPnlPoint>>§totals: Option<PortfolioRealizedTotals>§window: Option<PortfolioSeriesWindow>Trait Implementations§
Source§impl Clone for GetPortfolioRealizedPnlResponse
impl Clone for GetPortfolioRealizedPnlResponse
Source§fn clone(&self) -> GetPortfolioRealizedPnlResponse
fn clone(&self) -> GetPortfolioRealizedPnlResponse
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 GetPortfolioRealizedPnlResponse
impl<'de> Deserialize<'de> for GetPortfolioRealizedPnlResponse
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 GetPortfolioRealizedPnlResponse
impl RefUnwindSafe for GetPortfolioRealizedPnlResponse
impl Send for GetPortfolioRealizedPnlResponse
impl Sync for GetPortfolioRealizedPnlResponse
impl Unpin for GetPortfolioRealizedPnlResponse
impl UnsafeUnpin for GetPortfolioRealizedPnlResponse
impl UnwindSafe for GetPortfolioRealizedPnlResponse
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