pub struct KrakenEmbedGetPortfolioSummaryResponse {
pub data: KrakenEmbedGetPortfolioSummaryResponseData,
}Expand description
High-level summary of a user’s portfolio including total value, available balance, and unrealized P&L.
JSON schema
{
"title": "KrakenEmbedGetPortfolioSummaryResponse",
"description": "High-level summary of a user's portfolio including
total value, available balance, and unrealized P&L.",
"examples": [
{
"data": {
"result": {
"available_balance": "35000.00",
"cost_basis": "30000.00",
"currency": "USD",
"current_day_pnl": null,
"lots_upnl": "5000.00",
"open_orders": "0.00",
"portfolio_value": "35000.00",
"timestamp": "2024-04-15T12:00:00Z",
"withheld_value": "0.00"
}
}
}
],
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"properties": {
"error": {
"type": "array",
"items": {
"type": "string"
}
},
"errors": {
"type": "array",
"items": {
"type": "string"
}
},
"result": {
"type": "object",
"required": [
"available_balance",
"currency",
"open_orders",
"portfolio_value",
"timestamp",
"withheld_value"
],
"properties": {
"available_balance": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"cost_basis": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"currency": {
"type": "string",
"maxLength": 16
},
"current_day_pnl": {
"oneOf": [
{
"$ref": "#/components/schemas/KrakenEmbedCurrentDayPnl"
},
{
"type": "string"
},
{
"type": "string"
}
]
},
"lots_upnl": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"open_orders": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"portfolio_value": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"withheld_value": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
}
}
}
}
}
},
"x-stainless-model":
"kraken_embed.kraken_embed_get_portfolio_summary_response"
}Fields§
§data: KrakenEmbedGetPortfolioSummaryResponseDataTrait Implementations§
Source§impl Clone for KrakenEmbedGetPortfolioSummaryResponse
impl Clone for KrakenEmbedGetPortfolioSummaryResponse
Source§fn clone(&self) -> KrakenEmbedGetPortfolioSummaryResponse
fn clone(&self) -> KrakenEmbedGetPortfolioSummaryResponse
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 KrakenEmbedGetPortfolioSummaryResponse
impl<'de> Deserialize<'de> for KrakenEmbedGetPortfolioSummaryResponse
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<&KrakenEmbedGetPortfolioSummaryResponse> for KrakenEmbedGetPortfolioSummaryResponse
impl From<&KrakenEmbedGetPortfolioSummaryResponse> for KrakenEmbedGetPortfolioSummaryResponse
Source§fn from(value: &KrakenEmbedGetPortfolioSummaryResponse) -> Self
fn from(value: &KrakenEmbedGetPortfolioSummaryResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KrakenEmbedGetPortfolioSummaryResponse
impl RefUnwindSafe for KrakenEmbedGetPortfolioSummaryResponse
impl Send for KrakenEmbedGetPortfolioSummaryResponse
impl Sync for KrakenEmbedGetPortfolioSummaryResponse
impl Unpin for KrakenEmbedGetPortfolioSummaryResponse
impl UnsafeUnpin for KrakenEmbedGetPortfolioSummaryResponse
impl UnwindSafe for KrakenEmbedGetPortfolioSummaryResponse
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