cfg

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Key    string `yaml:"key"`
	Secret string `yaml:"secret"`
}

type BlockchainConfig

type BlockchainConfig struct {
	Addresses []string `yaml:"addresses"`
	CSV       []string `yaml:"csv"`
	JSON      string   `yaml:"json"`
}

Blockchains

type Blockchains

type Blockchains struct {
	ADA BlockchainConfig `yaml:"ADA"`
	BTC BlockchainConfig `yaml:"BTC"`
	BTG BlockchainConfig `yaml:"BTG"`
	ETH BlockchainConfig `yaml:"ETH"`
}

type CSV

type CSV struct {
	All           []string `yaml:"all"`
	Staking       []string `yaml:"staking"`
	Supercharger  []string `yaml:"supercharger"`
	Trades        []string `yaml:"trades"`
	Transfers     []string `yaml:"transfers"`
	Deposits      []string `yaml:"deposits"`
	Withdrawals   []string `yaml:"withdrawals"`
	Distributions []string `yaml:"distributions"`
}

Exchanges

type Config

type Config struct {
	Blockchains Blockchains `yaml:"blockchains"`
	Exchanges   Exchanges   `yaml:"exchanges"`
	Options     Options     `yaml:"options"`
	Tools       Tools       `yaml:"tools"`
	Wallets     Wallets     `yaml:"wallets"`
}

func LoadConfig

func LoadConfig() (*Config, error)

type ExchangeConfig

type ExchangeConfig struct {
	CSV           CSV      `yaml:"csv"`
	API           API      `yaml:"api"`
	JSON          string   `yaml:"json"`
	Account       string   `yaml:"account"`
	DelistedCoins []string `yaml:"delisted-coins"`
}

type Exchanges

type Exchanges struct {
	Binance       ExchangeConfig `yaml:"binance"`
	Bitfinex      ExchangeConfig `yaml:"bitfinex"`
	Bitstamp      ExchangeConfig `yaml:"bitstamp"`
	Bittrex       ExchangeConfig `yaml:"bittrex"`
	CdcApp        ExchangeConfig `yaml:"cdc-app"`
	CdcEx         ExchangeConfig `yaml:"cdc-exchange"`
	Coinbase      ExchangeConfig `yaml:"coinbase"`
	CoinbasePro   ExchangeConfig `yaml:"coinbase-pro"`
	HitBTC        ExchangeConfig `yaml:"hitbtc"`
	Kraken        ExchangeConfig `yaml:"kraken"`
	LocalBitcoins ExchangeConfig `yaml:"localbitcoins"`
	Poloniex      ExchangeConfig `yaml:"poloniex"`
	Revolut       ExchangeConfig `yaml:"revolut"`
	Uphold        ExchangeConfig `yaml:"uphold"`
}

type FiscalYear

type FiscalYear struct {
	Y2019 bool `yaml:"2019"`
	Y2020 bool `yaml:"2020"`
	Y2021 bool `yaml:"2021"`
}

type Options

type Options struct {
	Bcd             bool       `yaml:"bcd"`
	Bch             bool       `yaml:"bch"`
	BinanceExtended bool       `yaml:"binance-extended"`
	Btg             bool       `yaml:"btg"`
	CashInBNC       FiscalYear `yaml:"cashin-bnc"`
	Check           bool       `yaml:"check"`
	CurrencyFilter  string     `yaml:"curr-filter"`
	Date            string     `yaml:"date"`
	Debug           bool       `yaml:"debug"`
	Display2086     bool       `yaml:"display-2086"`
	Exact           bool       `yaml:"exact"`
	Export2086      bool       `yaml:"export-2086"`
	Export3916      bool       `yaml:"export-3916"`
	ExportStock     bool       `yaml:"export-stock"`
	Lbtc            bool       `yaml:"lbtc"`
	Location        string     `yaml:"location"`
	LogFile         string     `yaml:"log"`
	Native          string     `yaml:"native"`
	Stats           bool       `yaml:"stats"`
	TxsCategory     string     `yaml:"txs-categ"`
	TxsDisplay      string     `yaml:"txs-display"`
}

Options

type Tools

type Tools struct {
	CoinAPI   API `yaml:"coinapi"`
	CoinLayer API `yaml:"coinlayer"`
	EtherScan API `yaml:"etherscan"`
}

Tools

type WalletConfig

type WalletConfig struct {
	CSV CSV `yaml:"csv"`
}

Wallets

type Wallets

type Wallets struct {
	LedgerLive WalletConfig `yaml:"ledgerlive"`
	Monero     WalletConfig `yaml:"monero"`
	MyCelium   WalletConfig `yaml:"mycelium"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL