coingecko

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 11 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 {
	// 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)

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