> For the complete documentation index, see [llms.txt](https://docs.aquanow.io/cams/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aquanow.io/cams/api-reference/accounts/performance.md).

# Performance

## Get Account Performance

> Retrieve account performance details for an account and its assets.

```json
{"openapi":"3.0.3","info":{"title":"Aquanow CAMS REST API","version":"1.0"},"servers":[{"url":"https://cams.aquanow.com/api","description":"production"},{"url":"http://localhost:3001/api","description":"local"},{"url":"https://cams.dev.aquanow.com/api","description":"dev"},{"url":"https://cams.staging.aquanow.com/api","description":"staging"},{"url":"https://cams.cert.aquanow.com/api","description":"cert"},{"url":"https://marketdata.aquanow.com","description":"production market data"},{"url":"https://marketdata.staging.aquanow.com","description":"staging market data"},{"url":"https://marketdata.dev.aquanow.com","description":"dev market data"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","scheme":"bearer"}},"schemas":{"HistoricalPerformance":{"type":"object","properties":{"accountId":{"type":"string","format":"uuid"},"performanceCurrency":{"type":"string"},"mtm":{"type":"string","format":"number"},"lastUpdatedAt":{"$ref":"#/components/schemas/Datetime"},"assetMtm":{"type":"array","items":{"type":"object","properties":{"asset":{"type":"string"},"assetMarketValue":{"type":"string","format":"number","nullable":true},"assetTradeBalance":{"type":"string","format":"number","nullable":true},"marketRate":{"type":"string","format":"number","nullable":true},"averagePrice":{"type":"string","format":"number","nullable":true},"pnl":{"type":"string","format":"number","nullable":true}}}},"dataPoints":{"type":"array","items":{"type":"object","properties":{"closedAt":{"type":"string","format":"date"},"accountMarketValue":{"type":"string","format":"number"},"pnl":{"type":"string","format":"number","nullable":true},"assets":{"type":"array","items":{"type":"object","properties":{"asset":{"type":"string"},"assetMarketValue":{"type":"string","format":"number","nullable":true},"assetTradeBalance":{"type":"string","format":"number","nullable":true},"marketRate":{"type":"string","format":"number","nullable":true},"averagePrice":{"type":"string","format":"number","nullable":true},"pnl":{"type":"string","format":"number","nullable":true}}}}}}}}},"Datetime":{"title":"Datetime","type":"string","format":"date-time","description":"Date-time in ISO 8601 format"},"IntradayPerformance":{"type":"object","properties":{"accountId":{"type":"string","format":"uuid"},"performanceCurrency":{"type":"string"},"mtm":{"type":"string","format":"number"},"lastUpdatedAt":{"$ref":"#/components/schemas/Datetime"},"dailyPercentageChangeAccount":{"type":"string","format":"number","description":"Daily mark to market change in percentage for INTRADAY reports","nullable":true},"dailyValueChangeAccount":{"type":"string","format":"number","description":"Daily value in percentage for INTRADAY reports","nullable":true},"assetMtm":{"type":"array","items":{"type":"object","properties":{"asset":{"type":"string"},"assetMarketValue":{"type":"string","format":"number","nullable":true},"assetTradeBalance":{"type":"string","format":"number","nullable":true},"marketRate":{"type":"string","format":"number","nullable":true},"averagePrice":{"type":"string","format":"number","nullable":true},"dailyPercentageChangeAccount":{"type":"string","format":"number","description":"Daily mark to market change in percentage for INTRADAY reports","nullable":true},"dailyValueChangeAccount":{"type":"string","format":"number","description":"Daily value in percentage for INTRADAY reports","nullable":true}}}},"dataPoints":{"type":"array","items":{"type":"object","properties":{"closedAt":{"type":"string","format":"date-time"},"accountMarketValue":{"type":"string","format":"number"},"assets":{"type":"array","items":{"type":"object","properties":{"asset":{"type":"string"},"assetMarketValue":{"type":"string","format":"number","nullable":true},"assetTradeBalance":{"type":"string","format":"number","nullable":true},"marketRate":{"type":"string","format":"number","nullable":true}}}}}}}}}},"responses":{"400":{"description":"Validation Error"},"401":{"description":"Unauthorized"},"403":{"description":"Insufficient Privileges"},"4XX":{"description":"Client error"},"5XX":{"description":"Server error"}}},"paths":{"/v1/accounts/{accountId}/performance":{"get":{"summary":"Get Account Performance","description":"Retrieve account performance details for an account and its assets.","tags":["Accounts"],"parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"The account ID"},{"name":"startDate","in":"query","schema":{"type":"string","format":"date"},"description":"The first date to include in the performance data"},{"name":"endDate","in":"query","schema":{"type":"string","format":"date"},"description":"The last date to include in the performance data"},{"name":"reportType","in":"query","schema":{"type":"string","enum":["INTRADAY","HISTORICAL"]},"description":"Defines the type of report for account performance. The default behavior, if not informed, is to return the historical data. Intraday returns the account performance in 2 hr intervals on the last 24h"},{"name":"dataPoints","in":"query","schema":{"type":"integer","minimum":1,"maximum":60,"default":15},"description":"Maximum number of historical data points to return. Defaults to 15 and cannot exceed 60."}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HistoricalPerformance"},{"$ref":"#/components/schemas/IntradayPerformance"}],"type":"object"}}}},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"4XX":{"$ref":"#/components/responses/4XX"},"5XX":{"$ref":"#/components/responses/5XX"}},"operationId":"GetAccountPerformance"}}}}
```
