Documentation ¶
Index ¶
Constants ¶
View Source
const ( NoApiKey = "" ApiKeyHeaderName = "x-cg-demo-api-key" )
View Source
const SimplePriceURL = "%s/simple/price?vs_currencies=usd&include_last_updated_at=true&ids=%s"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoingeckoClient ¶
type CoingeckoClient struct {
// contains filtered or unexported fields
}
func NewCoingeckoClient ¶
func NewCoingeckoClient(config *config.CoingeckoConfig, log *logging.Logger) *CoingeckoClient
func (*CoingeckoClient) GetAssetPrices ¶
func (c *CoingeckoClient) GetAssetPrices(assetIds []string) ([]PriceData, error)
func (*CoingeckoClient) GetPrices ¶
func (c *CoingeckoClient) GetPrices() ([]PriceData, error)
Click to show internal directories.
Click to hide internal directories.