Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PriceFeed ¶
type PriceFeed struct {
// contains filtered or unexported fields
}
func NewCoingeckoPriceFeed ¶
func NewCoingeckoPriceFeed(logger zerolog.Logger, interval time.Duration, endpointConfig *Config) *PriceFeed
NewCoingeckoPriceFeed returns price puller for given symbol. The price will be pulled from endpoint and divided by scaleFactor. Symbol name (if reported by endpoint) must match.
func (*PriceFeed) QueryETHUSDPrice ¶
Click to show internal directories.
Click to hide internal directories.