coingecko

package
v0.0.0-...-2c9d471 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoingeckoClient

type CoingeckoClient struct {
	ApiURL string
	// contains filtered or unexported fields
}

func NewCoingeckoClient

func NewCoingeckoClient(apiURL string, log *zap.Logger) *CoingeckoClient

func (*CoingeckoClient) GetAssetPrices

func (c *CoingeckoClient) GetAssetPrices(assetIds []string) ([]PriceData, error)

type PriceData

type PriceData struct {
	AssetSymbol string
	PriceUSD    decimal.Decimal
	Time        time.Time
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL