amber

package
v0.0.0-...-c8d982f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const URI = "https://api.amber.com.au/v1/sites/%s/prices?resolution=30"

Variables

This section is empty.

Functions

This section is empty.

Types

type AdvancedPrice

type AdvancedPrice struct {
	Low       float64 `json:"low"`
	Predicted float64 `json:"predicted"`
	High      float64 `json:"high"`
}

type PriceInfo

type PriceInfo struct {
	Type          string         `json:"type"`
	Date          string         `json:"date"`
	Duration      int            `json:"duration"`
	StartTime     string         `json:"startTime"`
	EndTime       string         `json:"endTime"`
	NemTime       string         `json:"nemTime"`
	PerKwh        float64        `json:"perKwh"`
	Renewables    float64        `json:"renewables"`
	SpotPerKwh    float64        `json:"spotPerKwh"`
	ChannelType   string         `json:"channelType"`
	SpikeStatus   string         `json:"spikeStatus"`
	Descriptor    string         `json:"descriptor"`
	Estimate      bool           `json:"estimate"`
	AdvancedPrice *AdvancedPrice `json:"advancedPrice,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL