Documentation ¶
Index ¶
- Constants
- Variables
- func Calculate(ctx context.Context, tx *sql.Tx, year int, fiatCurrency currency.Symbol, ...) error
- func DownloadCoingeckoHistoricalPrice(dir string) error
- func DownloadCryptoDataDownloadHistoricalPrice(dir string) error
- func DownloadYahooFinanceHistoricalPrice(dir string, baseCurrencies []string, symbols []string) error
- func ImportBitflyerData(ctx context.Context, db boil.ContextExecutor, args []string, overwrite bool) error
- func ImportBittrexData(ctx context.Context, db boil.ContextExecutor, args []string, overwrite bool, ...) error
- func ImportCoincheckData(ctx context.Context, db boil.ContextExecutor, args []string, overwrite bool) error
- func ImportCryptactData(ctx context.Context, db boil.ContextExecutor, args []string, overwrite bool, ...) error
- func ImportPoloniexData(ctx context.Context, db boil.ContextExecutor, args []string, overwrite bool, ...) error
- func LoadCDDHistoricalPrice(db *sql.DB, args []string) error
- func LoadCoingeckoHistoricalPrice(db boil.ContextExecutor, args []string) error
- func LoadYahooFinanceHistoricalPrice(db *sql.DB, args []string) error
- func Translate(ctx context.Context, tx *sql.Tx, year int, jst *time.Location, ...) error
Constants ¶
View Source
const ( CostMethodWeightedAverage = "wam" CostMethodMovingAverage = "mam" )
Variables ¶
View Source
var CostMethods = []string{ CostMethodWeightedAverage, CostMethodMovingAverage, }
Functions ¶
func Calculate ¶
func Calculate(ctx context.Context, tx *sql.Tx, year int, fiatCurrency currency.Symbol, loc *time.Location, method string, options ...costmethod.Option) error
Calculate updates balance
func ImportBitflyerData ¶
func ImportBittrexData ¶
func ImportCoincheckData ¶
func ImportCryptactData ¶
func ImportPoloniexData ¶
func LoadCoingeckoHistoricalPrice ¶
func LoadCoingeckoHistoricalPrice(db boil.ContextExecutor, args []string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.