How to match VRM api values to displayed VRM portal values?

With the api request

curl --request GET \
  --url 'https://vrmapi.victronenergy.com/v2/installations/xxx/stats?type=kwh&interval=days' \
  --header 'Content-Type: application/json' \
  --header 'x-authorization: Token xxx'

I get the response

 ... 
 },
  "totals": {
    "Pb": 8.060382200288586,
    "Pc": 5.080568945035338,
    "Bc": 3.936876678839326,
    "Bg": 0.10000000149011612,
    "Gc": 7.355358831584454,
    "Gb": 0.1446413267403841,
    "kwh": 24.677827983978204
  }
}

This are my VRM portal values:

I’m not be able to match the api values to the VRM portal values.

Does anyone have any ideas?

I answer my questen for myself. The query was incorrect for current daily values. For current daily values I have to set the start parameter with midnight as timestamp. With the midnight start parameter, the values match those in the VRM portal.

Welcome, well done, might wanna flag your post as ‘solved’. You probably set a new record for a first time poster too. :wink: