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 HistoricalPriceFilename ¶
Types ¶
type HistoricalPriceLoader ¶
type HistoricalPriceLoader struct {
// contains filtered or unexported fields
}
func NewHistoricalPriceLoader ¶
func NewHistoricalPriceLoader(exchange, currency, baseCurrency string) *HistoricalPriceLoader
func (*HistoricalPriceLoader) Execute ¶
func (l *HistoricalPriceLoader) Execute(ctx context.Context, db boil.ContextExecutor, reader io.Reader) error
Click to show internal directories.
Click to hide internal directories.