Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoingeckoAPI ¶
type CoingeckoAPI struct {
// contains filtered or unexported fields
}
CoingeckoAPI is a client for the coingecko API
func NewCoingeckoAPI ¶
func NewCoingeckoAPI(url string, headerKey, apiKey string, logger *zap.Logger) *CoingeckoAPI
NewCoingeckoAPI creates a new coingecko client
func (*CoingeckoAPI) GetNotionalUSD ¶
func (c *CoingeckoAPI) GetNotionalUSD(ids []string) (map[string]NotionalUSD, error)
GetNotionalUSD returns the notional USD value for the given ids ids is a list of coingecko chain identifier.
type NotionalUSD ¶
NotionalUSD is the response from the coingecko API.
Click to show internal directories.
Click to hide internal directories.