Methods
(async) .spotprice(period, requestedArea, currency, endDate, fetchOptions, urlOvverrideopt, resultOverrideopt) → {Array.<SpotPriceEntry>}
Get spot prices using supplied parameters, throws on error
Parameters:
requestedArea
(
string
)
SE1, SE2, ...
currency
(
string
)
SEK, EUR, ... Throws if not supplied by service
endDate
(
Date
)
Date object representing the date to fetch, normal date object in system local time
fetchOptions
(
Object
)
Options passed along to fetch
urlOvverride
(
string
)
<optional>Override default service URL, this URL is expected to contain all parameters, and will ignore previus passed parameters
resultOverride
(
Object
)
<optional>Override fetch result with plain object
- Source:
Type Definitions
.SpotPriceEntry :Object
Parameters:
startTime
(
Date
)
endTime
(
Date
)
areaCode
(
string
)
SE1, SE2 ...
spotPrice
(
Number
)
unit
(
string
)
EUR/MWh, SEK/MWh ...
- Source:
.SpotPricePeriod :"hourly"|"daily"|"weekly"|"monthly"|"yearly"
- Source: