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 ¶
Types ¶
type HistoricalPriceLoader ¶
type HistoricalPriceLoader struct {
// contains filtered or unexported fields
}
func NewHistoricalPriceLoader ¶
func NewHistoricalPriceLoader(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.