Actual Prices
Actual Prices
The base url of the Smart Charging API is https://api.voluespark.com/smart/v1.
Fetch actual spot prices
Actual spot prices can be retrieved by making a call to /prices/actual/{priceArea}
, where priceArea
is one of the five price areas in Norway (NO1, …, NO5).
The response of this query will be a list of the current price for each individual hour in the day.
Fetch advice about spot prices
The API can give you the optimal charging interval given certain parameters, which can be retrieved making a call to /prices/actual/{priceArea}/advice
The result from this type of query serves as an opinionated advice on when to start charging, and when to avoid.
As of right now, the algorithm takes advantage of both actual prices and forecast prices to generate charging advice, but additional variables will be taken into account in future iterations.
To make an API call simply run the following code (substitute parameters with your own values):
The result of this query will be a list of advices with total cost of the whole window, average price for the charging windows, as well as a describing how we categorized (type
) the window. Advice will be given for the whole actual price-window (the next day or two), starting from the time specified in the startFrom
parameter.