# 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://camsapi-dev.aquanow.com/api","description":"dev"},{"url":"https://camsapi-staging.aquanow.com/api","description":"staging"},{"url":"https://cams.cert.aquanow.com/api","description":"cert"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","scheme":"bearer"}},"schemas":{"Datetime":{"title":"Datetime","type":"string","format":"date-time","description":"Date-time in ISO 8601 format"}},"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.","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 on the last 24h"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"anyOf":[{"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"},"assetTradeBalance":{"type":"string","format":"number"},"marketRate":{"type":"string","format":"number"},"averagePrice":{"type":"string","format":"number"}}}},"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"},"assetTradeBalance":{"type":"string","format":"number"},"marketRate":{"type":"string","format":"number"}}}}}}}}},{"properties":{"accountId":{"type":"string","format":"uuid"},"performanceCurrency":{"type":"string"},"mtm":{"type":"string","format":"number"},"lastUpdatedAt":{"$ref":"#/components/schemas/Datetime"},"dailyPercentageChange":{"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"},"assetTradeBalance":{"type":"string","format":"number"},"marketRate":{"type":"string","format":"number"},"averagePrice":{"type":"string","format":"number"},"dailyPercentageChange":{"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"},"assetTradeBalance":{"type":"string","format":"number"},"marketRate":{"type":"string","format":"number"}}}}}}}}}],"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"}}}}
```
