Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetChainIDs ¶
GetChainIDs returns the coingecko chain ids for the given p2p network.
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) *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.