localbitcoin

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CsvTXTrade

type CsvTXTrade struct {
	ID                    string
	CreatedAt             time.Time
	Buyer                 string
	Seller                string
	TradeType             string
	Amount                decimal.Decimal
	Traded                decimal.Decimal
	FeeBTC                decimal.Decimal
	AmountLessFee         decimal.Decimal
	Final                 decimal.Decimal
	FiatAmount            decimal.Decimal
	FiatFee               decimal.Decimal
	FiatPerBTC            decimal.Decimal
	FiatCurrency          string
	ExchangeRate          decimal.Decimal
	TransactionReleasedAt time.Time
	OnlineProvider        string
	Reference             string
}

type CsvTXTransfer

type CsvTXTransfer struct {
	ID       string
	Created  time.Time
	Received decimal.Decimal
	Sent     decimal.Decimal
	Type     string
	Desc     string
	Notes    string
}

type LocalBitcoin

type LocalBitcoin struct {
	CsvTXsTrade    []CsvTXTrade
	CsvTXsTransfer []CsvTXTransfer
	TXsByCategory  wallet.TXsByCategory
	Sources        source.Sources
}

func New

func New() *LocalBitcoin

func (*LocalBitcoin) ParseTradeCSV

func (lb *LocalBitcoin) ParseTradeCSV(reader io.Reader, account string) (err error)

func (*LocalBitcoin) ParseTransferCSV

func (lb *LocalBitcoin) ParseTransferCSV(reader io.Reader, account string) (err error)

Jump to

Keyboard shortcuts

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