Calculate power usage daily total to grid/solar etc locally on Cerbo

I have hit the rate limit against the api while developing and it doesn’t appear to be releasing. I was no where near the 200 hits per period of time. I was calling once every 15 minutes to get todays data to extract the export and solar generation.

The documentation states

> Rate limiting

](VRM API documentation)

Most endpoints are by default rate limited with a rolling window of max 200 requests, where every 0.33 seconds a request gets removed from the rolling window. (so on average maximum of 3 requests per second won’t get rate limited). There are different types of ratelimiting in VRM. If you receive a 429 with a JSON response, you can check the Retry-After response header to check the amount of seconds you have to wait until retrying

I haven’t got anywhere close to this.
Really i only need the current totals for today, but i couldn’t find an end point for that.
My current request is https://vrmapi.victronenergy.com/v2/installations/xxxxx/data-download?datatype={{{datatype}}}&format={{{format}}}&end={{{end}}}&start={{{start}}}

To get this round i’d like to calculate the daily usage locally. I have tried this a few times in the past but I haven’t been able to massage the values i get from the various nodes into any form of useful numbers. I’ve tried integrating but the numbers make no sense. Obviously this is in node-red. Has anyone had any joy? I want to calculate the solar exported today and the grid exported today as kWh.