# Performance

## Get Account Performance

> Retrieve account performance details. Returns up to 15 data points for the account and it's assets. Will return the first and last date and then an approximately even distribution of 13 additional data points in between.

```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. Returns up to 15 data points for the account and it's assets. Will return the first and last date and then an approximately even distribution of 13 additional data points in between.","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"}],"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"}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aquanow.io/cams/api-reference/accounts/performance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
