Skip to content

How the account (or a portfolio) splits by kind of asset and by currency

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

OK

Media typeapplication/json
object
currency
required
string
total
required
string
byClass
required
Array<object>
object
key
required
string
value
required
string
percent
required
number
byCurrency
required
Array<object>
object
key
required
string
value
required
string
percent
required
number

Example generated

{
"currency": "example",
"total": "example",
"byClass": [
{
"key": "example",
"value": "example",
"percent": 1
}
],
"byCurrency": [
{
"key": "example",
"value": "example",
"percent": 1
}
]
}