Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoingeckoPriceFeed ¶
type CoingeckoPriceFeed struct {
// contains filtered or unexported fields
}
func NewCoingeckoPriceFeed ¶
func NewCoingeckoPriceFeed(interval time.Duration, endpointConfig *Config) *CoingeckoPriceFeed
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 (*CoingeckoPriceFeed) CheckFeeThreshold ¶ added in v1.9.0
func (*CoingeckoPriceFeed) QueryUSDPrice ¶
func (cp *CoingeckoPriceFeed) QueryUSDPrice(erc20Contract common.Address) (float64, error)
Click to show internal directories.
Click to hide internal directories.