coingecko

package
v0.0.0-...-afd3e11 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DataSourceCode = "coingecko"

DataSourceCode is the data source name

Variables

View Source
var BaseCurrencies = []string{
	"usd",
	"jpy",
}
View Source
var Currencies = map[int]string{
	1:   "btc",
	279: "eth",
	44:  "xrp",
	325: "usdt",
}

Functions

func DownloadHistoricalPrice

func DownloadHistoricalPrice(ctx context.Context, currencyCode int, baseCurrency string) ([]byte, error)

Types

type HistoricalPriceLoader

type HistoricalPriceLoader struct {
	// contains filtered or unexported fields
}

func NewHistoricalPriceLoader

func NewHistoricalPriceLoader(currency, baseCurrency string) *HistoricalPriceLoader

func (*HistoricalPriceLoader) Execute

Jump to

Keyboard shortcuts

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