cryptodatadownload

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: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnixTimestamp = 0
	Date          = 1
	Close         = 6
)
View Source
const NumColumns = 9

Variables

View Source
var BittrexPairs = map[string][]string{
	"USD": {"BTC", "ETH", "LTC", "NEO", "ETC", "OMG", "XMR", "DASH"},
	"BTC": {"XRP", "ETH", "LTC", "NEO", "ETC", "ZEC", "XLM", "WAVES", "ADA"},
	"ETH": {"XRP", "LTC", "NEO", "ADA", "OMG", "XMR", "ZEC", "XLM", "DASH"},
}

https://www.cryptodatadownload.com/cdd/Bittrex_BTCUSD_1h.csv

View Source
var Exchanges = map[string]map[string][]string{
	"Poloniex": PoloniexPairs,
	"Bittrex":  BittrexPairs,
}
View Source
var PoloniexPairs = map[string][]string{
	"USDT": {"BTC", "ETH", "LTC", "XRP", "DASH", "ETC", "BAT", "ZRX", "EOS", "LSK", "REP"},
	"BTC":  {"XRP", "ETH", "LTC", "XMR", "DASH", "LSK", "POT", "NXT", "ETC", "XEM", "DOGE"},
	"ETH":  {"ETC", "OMG", "ZEC", "LSK", "GNO", "REP", "GAS", "ZRX"},
}

https://www.cryptodatadownload.com/cdd/Poloniex_BTCUSDT_1h.csv

Functions

func DownloadHistoricalPrice

func DownloadHistoricalPrice(ctx context.Context, exchange, baseCurrency, quoteCurrency string) ([]byte, error)

func HistoricalPriceFilename

func HistoricalPriceFilename(exchange, baseCurrency, quoteCurrency string) string

Types

type HistoricalPriceLoader

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

func NewHistoricalPriceLoader

func NewHistoricalPriceLoader(exchange, 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