Skip to content

Value over time and time-weighted returns, for the account or one portfolio

GET
/v1/accounts/{id}/reports/performance
curl "https://api.staging.idealx.com/v1/accounts/acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90/reports/performance" \
-H "Authorization: Bearer $IDEALX_API_KEY"
id
required
string
portfolioId
string

OK

Media typeapplication/json
object
currency
required
string
since
required
string
series
required
Array<object>
object
day
required
string
value
required
string
returns
required

Time-weighted returns in percent: money in and out left out; null until there are two days

object
oneMonth
required
number | null
threeMonths
required
number | null
yearToDate
required
number | null
oneYear
required
number | null
sinceStart
required
number | null
sinceOpening
required
object
value
required
string
netMoneyIn
required
string
gain
required
string
approximate
required
boolean

Example generated

{
"currency": "example",
"since": "example",
"series": [
{
"day": "example",
"value": "example"
}
],
"returns": {
"oneMonth": 1,
"threeMonths": 1,
"yearToDate": 1,
"oneYear": 1,
"sinceStart": 1
},
"sinceOpening": {
"value": "example",
"netMoneyIn": "example",
"gain": "example"
},
"approximate": true
}

Not found

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
requestId
required
string
details
object
key
additional properties

Example

{
"error": {
"code": "validation_failed"
}
}