Portfolio daily allocation by asset class
query dailyAllocatioByAssetClass($ids: [Long], $groupCode: String, $groupBy: [GroupBy], $startDate:String, $endDate:String) {
analysis: analytics(
withoutPositionData: false
parameters: {
pfIds: $ids,
startDate: $startDate,
endDate: $endDate,
paramsSet: [
{key: "ALLOC",
timePeriodCodes: ["GIVEN"],
grouppedByProperties: $groupBy,
groupCode: $groupCode,
includeData: true,
includeChildren: true,
drilldownEnabled: false
}
]
}
) {
dailyValues: grouppedAnalytics(key: "ALLOC") {
portfolioLevelDailyValues: indexedReturnData {
date
marketValue
}
assetClassLevelDailyValues: grouppedAnalytics {
assetClassDailyValues: indexedReturnData {
code
name
date
marketValue
}
}
}
}
}
{
"data": {
"analysis": {
"dailyValues": {
"portfolioLevelDailyValues": [
{
"date": "2021-09-01",
"marketValue": 99125.87000000004
},
{
"date": "2021-09-02",
"marketValue": 98752.06000000001
}
],
"assetClassLevelDailyValues": [
{
"assetClassDailyValues": [
{
"code": "OTHER",
"name": "Other",
"date": "2021-09-01",
"marketValue": 6394.7
},
{
"code": "OTHER",
"name": "Other",
"date": "2021-09-02",
"marketValue": 6394.7
}
]
},
{
"assetClassDailyValues": [
{
"code": "10",
"name": "Communications",
"date": "2021-09-01",
"marketValue": 12698.504991578498
},
{
"code": "10",
"name": "Communications",
"date": "2021-09-02",
"marketValue": 12514.4984664054
}
]
},
.
.
.
{
"assetClassDailyValues": [
{
"code": "20",
"name": "Utilities",
"date": "2021-09-01",
"marketValue": 413.91938412
},
{
"code": "20",
"name": "Utilities",
"date": "2021-09-02",
"marketValue": 433.11142427590005
}
]
}
]
}
}
}
}