Documentation
¶
Index ¶
Constants ¶
View Source
const ( ENTSO_PRICE_API = "https://web-api.tp.entsoe.eu/api" ENTSO_PRICE_API_TEMPLATE = "%s?securityToken=%s&documenttype=A44&periodStart=%s&periodEnd=%s&out_Domain=%s&in_Domain=%s" ENTSO_PRICE_API_PERIOD_TIME_FORMAT = "200601021504" )
Variables ¶
View Source
var MapEICCode = map[string]string{
"FIN": "10YFI-1--------U",
}
MapEICCode contains human-readable and memorable name abbreviation of the bidding zone. More areas can be added as needed. See https://transparencyplatform.zendesk.com/hc/en-us/articles/15885757676308-Area-List-with-Energy-Identification-Code-EIC.
Functions ¶
This section is empty.
Types ¶
type EntsoeAPIError ¶
func (*EntsoeAPIError) Error ¶
func (e *EntsoeAPIError) Error() string
type EntsoePriceApi ¶
type EntsoePriceApi struct {
// contains filtered or unexported fields
}
func NewEntsoePriceApi ¶
func NewEntsoePriceApi(securityToken, domain string) EntsoePriceApi
Create new instance of EntsoePriceApi. securityToken is required parameter, domain is optional and can be empty string.
func (EntsoePriceApi) GetEnergyPrices ¶
func (e EntsoePriceApi) GetEnergyPrices(day time.Time) (EntsoePrices, error)
func (EntsoePriceApi) GetEnergyPricesForDomain ¶ added in v0.1.1
func (e EntsoePriceApi) GetEnergyPricesForDomain(day time.Time, domain string) (EntsoePrices, error)
type EntsoePrices ¶
type EntsoePrices struct { StartTime time.Time `json:"start_time"` EndTime time.Time `json:"end_time"` ResolutionMin int `json:"resolution_min"` Prices []float64 `json:"prices"` }
func FromXml ¶ added in v0.1.1
func FromXml(data []byte) (EntsoePrices, error)
Parse Entso-e Prices from xml. Might fail if xml isn't in correct format.
func NewEntsoePrices ¶
func NewEntsoePrices(doc entsoedoc.Publication) EntsoePrices
Click to show internal directories.
Click to hide internal directories.