Documentation ¶
Index ¶
- func AskForHelp(id string, tx interface{}, alreadyAsked []string) []string
- func CoinAPISetKey(key string) error
- func CoinLayerSetKey(key string) error
- type CoinAPI
- type CoinGeckoAPI
- type CoinLayer
- type CoinList
- type CoinsListItem
- type Currencies
- type Currency
- type ExchangeRates
- type HistoricalData
- type Nft
- type Nfts
- type Rate
- type TX
- type TXs
- func (txs TXs) AddFromNativeValue(native string) TXs
- func (txs TXs) AddToNativeValue(native string) TXs
- func (txs TXs) After(date time.Time) TXs
- func (txs TXs) ApplyFromReversal() TXs
- func (txs TXs) Before(date time.Time) TXs
- func (txs TXs) GetBalances(includeFiat, includeFee bool) (cs WalletCurrencies)
- func (txs TXs) Println(name string, filter string)
- func (txs TXs) SortByDate(chrono bool)
- type TXsByCategory
- func (txs TXsByCategory) Add(a TXsByCategory)
- func (txs TXsByCategory) AddUniq(a TXsByCategory)
- func (txs TXsByCategory) CheckConsistency(loc *time.Location)
- func (txs TXsByCategory) FindCashInOut(native string)
- func (txs TXsByCategory) FindTransfers(cat category.Category) TXsByCategory
- func (txs TXsByCategory) GetCoinsList(includeFiat bool) (coins []string)
- func (txs TXsByCategory) GetWallets(date time.Time, includeFiat bool, rounding bool) (w Wallets)
- func (txs TXsByCategory) PrintStats(native string)
- func (txs TXsByCategory) Println(filter string)
- func (txs TXsByCategory) RemoveDelistedCoins(coin string)
- func (txs TXsByCategory) SortByDate(chrono bool)
- func (txs TXsByCategory) StockToXlsx(filename string)
- type WalletCurrencies
- type Wallets
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskForHelp ¶ added in v1.2.0
func CoinAPISetKey ¶
func CoinLayerSetKey ¶
Types ¶
type CoinGeckoAPI ¶
type CoinGeckoAPI struct {
// contains filtered or unexported fields
}
func NewCoinGeckoAPI ¶
func NewCoinGeckoAPI() (*CoinGeckoAPI, error)
func (*CoinGeckoAPI) GetExchangeRates ¶
func (api *CoinGeckoAPI) GetExchangeRates(date time.Time, coin string) (rates ExchangeRates, err error)
type CoinList ¶
type CoinList []CoinsListItem
type CoinsListItem ¶
type Currencies ¶
type Currencies []Currency
type Currency ¶
func (Currency) GetExchangeRate ¶
type ExchangeRates ¶
type HistoricalData ¶
type TX ¶
type TX struct { Timestamp time.Time ID string Source string Category string Items map[string]Currencies Nfts map[string]Nfts Note string // contains filtered or unexported fields }
func (TX) GetBalances ¶ added in v1.1.0
func (tx TX) GetBalances(includeFiat, includeFee bool) (cs WalletCurrencies)
func (TX) SameBalances ¶ added in v1.2.0
type TXs ¶
type TXs []TX
func (TXs) AddFromNativeValue ¶ added in v1.2.0
func (TXs) AddToNativeValue ¶ added in v1.4.0
func (TXs) ApplyFromReversal ¶ added in v1.2.0
func (TXs) GetBalances ¶ added in v1.2.0
func (txs TXs) GetBalances(includeFiat, includeFee bool) (cs WalletCurrencies)
func (TXs) SortByDate ¶
type TXsByCategory ¶
func (TXsByCategory) Add ¶
func (txs TXsByCategory) Add(a TXsByCategory)
func (TXsByCategory) AddUniq ¶ added in v1.2.0
func (txs TXsByCategory) AddUniq(a TXsByCategory)
func (TXsByCategory) CheckConsistency ¶
func (txs TXsByCategory) CheckConsistency(loc *time.Location)
func (TXsByCategory) FindCashInOut ¶
func (txs TXsByCategory) FindCashInOut(native string)
func (TXsByCategory) FindTransfers ¶
func (txs TXsByCategory) FindTransfers(cat category.Category) TXsByCategory
func (TXsByCategory) GetCoinsList ¶ added in v1.2.0
func (txs TXsByCategory) GetCoinsList(includeFiat bool) (coins []string)
func (TXsByCategory) GetWallets ¶
func (TXsByCategory) PrintStats ¶
func (txs TXsByCategory) PrintStats(native string)
func (TXsByCategory) Println ¶
func (txs TXsByCategory) Println(filter string)
func (TXsByCategory) RemoveDelistedCoins ¶ added in v1.2.0
func (txs TXsByCategory) RemoveDelistedCoins(coin string)
func (TXsByCategory) SortByDate ¶ added in v1.3.0
func (txs TXsByCategory) SortByDate(chrono bool)
func (TXsByCategory) StockToXlsx ¶ added in v1.2.0
func (txs TXsByCategory) StockToXlsx(filename string)
type WalletCurrencies ¶
func (WalletCurrencies) Add ¶
func (wc WalletCurrencies) Add(a WalletCurrencies)
type Wallets ¶
type Wallets struct { Date time.Time Currencies WalletCurrencies Nfts Nfts }
func (Wallets) CalculateTotalValue ¶
Click to show internal directories.
Click to hide internal directories.