coinbase

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplaceAssets added in v1.3.0

func ReplaceAssets(assetToReplace string) string

Types

type Coinbase

type Coinbase struct {
	CsvTXs        []CsvTX
	TXsByCategory wallet.TXsByCategory
	Sources       source.Sources
}

func New

func New() *Coinbase

func (*Coinbase) ParseCSV

func (cb *Coinbase) ParseCSV(reader io.ReadSeeker, cat category.Category, account string) (err error)

type CsvTX

type CsvTX struct {
	Timestamp time.Time
	ID        string
	Type      string
	Asset     string
	Quantity  decimal.Decimal
	SpotPrice decimal.Decimal
	Subtotal  decimal.Decimal
	Total     decimal.Decimal
	Fees      decimal.Decimal
	Notes     string
}

Jump to

Keyboard shortcuts

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