Forecast prices consists of spot prices for the next seven days. The data is segmented into 6 hour intervals by default, but this can be adjusted to interval-lengths which are divisible by 24 hours by using the segmentSize query parameter.
A request to /prices/forecast/${priceArea} can be made with the following code:
The response of this API call will be a JSON object containing the following properties:
Fetch advice regarding forecast prices
The API can give you advice regarding the forecast intervals. The result from this type of query serves as an opinionated advice on when to use electricity, and when to avoid.
To make an API call simply run the following code (substitute parameters with your own values):
The response of this API call will be a JSON object containing the following properties: