If I have some code that sends a request to the API in the format
where t= the current time according to the requesting server
The API seems to handle this by rounding to the nearest 5-minute interval
So the API would request the information as recorded at 13.05, a time in the future and the API will return “Bad request 400: No status found”
Initially, I thought this could be fixed by making sure the server always rounded down.However, I remembered that the information might not be sent to the server until 13.07 so it may even return an error if t=13.06 rounded to 13.05
As such could I recommend that the is the time value is after the last record value that it return the last recorded value as it does when t is not specified.
Otherwise, this will always have to be done by the requesting server.
For interest. I am asking this because I am building a PV output AI app