pub struct GetPortfolioStatsResponse {
pub fees_paid: Option<String>,
pub max_drawdown: Option<String>,
pub period: Option<String>,
pub perps_equity: Option<String>,
pub pnl: Option<String>,
pub spot_equity: Option<String>,
pub total_equity: Option<String>,
pub total_orders: Option<String>,
pub total_trades: Option<String>,
pub volume: Option<String>,
pub win_loss_ratio: Option<f64>,
}Expand description
GetPortfolioStatsResponse
JSON schema
{
"type": "object",
"properties": {
"fees_paid": {
"description": "Total fees paid by user",
"examples": [
"0.12"
],
"type": [
"string",
"null"
]
},
"max_drawdown": {
"description": "Maximum peak-to-trough drawdown on running PnL",
"examples": [
"0.00"
],
"type": [
"string",
"null"
]
},
"period": {
"description": "Period used for this query",
"examples": [
"30d"
],
"type": [
"string",
"null"
]
},
"perps_equity": {
"description": "Perpetuals account equity",
"examples": [
"0.00"
],
"type": [
"string",
"null"
]
},
"pnl": {
"description": "Profit and loss (CREDIT - DEBIT from trade ledger entries)",
"examples": [
"-0.01"
],
"type": [
"string",
"null"
]
},
"spot_equity": {
"description": "Spot account equity",
"examples": [
"280.93"
],
"type": [
"string",
"null"
]
},
"total_equity": {
"description": "Total equity (sum of all balances)",
"examples": [
"280.93"
],
"type": [
"string",
"null"
]
},
"total_orders": {
"description": "Number of orders in period",
"type": [
"string",
"null"
]
},
"total_trades": {
"description": "Number of trades in period",
"type": [
"string",
"null"
]
},
"volume": {
"description": "Total trade volume (sum of quote_volume)",
"examples": [
"231.81"
],
"type": [
"string",
"null"
]
},
"win_loss_ratio": {
"description": "Ratio of profitable trades to total trades",
"examples": [
0.65
],
"type": [
"number",
"null"
],
"format": "double"
}
}
}Fields§
§fees_paid: Option<String>Total fees paid by user
max_drawdown: Option<String>Maximum peak-to-trough drawdown on running PnL
period: Option<String>Period used for this query
perps_equity: Option<String>Perpetuals account equity
pnl: Option<String>Profit and loss (CREDIT - DEBIT from trade ledger entries)
spot_equity: Option<String>Spot account equity
total_equity: Option<String>Total equity (sum of all balances)
total_orders: Option<String>Number of orders in period
total_trades: Option<String>Number of trades in period
volume: Option<String>Total trade volume (sum of quote_volume)
win_loss_ratio: Option<f64>Ratio of profitable trades to total trades
Trait Implementations§
Source§impl Clone for GetPortfolioStatsResponse
impl Clone for GetPortfolioStatsResponse
Source§fn clone(&self) -> GetPortfolioStatsResponse
fn clone(&self) -> GetPortfolioStatsResponse
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 GetPortfolioStatsResponse
impl Debug for GetPortfolioStatsResponse
Source§impl Default for GetPortfolioStatsResponse
impl Default for GetPortfolioStatsResponse
Source§impl<'de> Deserialize<'de> for GetPortfolioStatsResponse
impl<'de> Deserialize<'de> for GetPortfolioStatsResponse
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 GetPortfolioStatsResponse
impl RefUnwindSafe for GetPortfolioStatsResponse
impl Send for GetPortfolioStatsResponse
impl Sync for GetPortfolioStatsResponse
impl Unpin for GetPortfolioStatsResponse
impl UnsafeUnpin for GetPortfolioStatsResponse
impl UnwindSafe for GetPortfolioStatsResponse
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