API الوثائق
get
/api/v1/Trade/portfolio-valueReturns account portfolio summary (balance, equity, margin, PnL) for a trading account owned by the caller — same trailing fields as SignalR {PortfolioUpdated}.
Trade
حدود
accountId
query · integer
مطلوب
version
path · string
مطلوب
استجابات
- 200Portfolio value summary.application/json
{ "currencyName": "USD", "currencyId": 148, "value": 62672.26, "accountValue": -62480.34, "positionValue": 130703.58, "pnL": -188524.42, "uPnL": -53007.39, "equity": 62672.26, "balance": 115679.65, "exposure": 130703.62, "marginUsed": 1307.03, "marginAvailable": 61365.23 } - 400Invalid account.application/json
{ "status": "rejected", "message": "Validation failed." } - 403Caller lacks Trading claim or account not owned.