coinbasepro

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoinbasePro

type CoinbasePro struct {
	CsvFillsTXs   []CsvFillsTX
	CsvAccountTXs []CsvAccountTX
	TXsByCategory wallet.TXsByCategory
	Sources       source.Sources
}

func New

func New() *CoinbasePro

func (*CoinbasePro) ParseAccountCSV

func (cbp *CoinbasePro) ParseAccountCSV(reader io.ReadSeeker, account string) (err error)

func (*CoinbasePro) ParseFillsCSV

func (cbp *CoinbasePro) ParseFillsCSV(reader io.ReadSeeker, account string) (err error)

type CsvAccountTX

type CsvAccountTX struct {
	Portfolio         string
	Type              string
	Time              time.Time
	Amount            decimal.Decimal
	Balance           decimal.Decimal
	AmountBalanceUnit string
	TransferID        string
	TradeID           string
	OrderID           string
}

type CsvFillsTX

type CsvFillsTX struct {
	Portfolio         string
	TradeID           string
	ProductLeft       string
	ProductRight      string
	Side              string
	CreatedAt         time.Time
	Size              decimal.Decimal
	SizeUnit          string
	Price             decimal.Decimal
	Fee               decimal.Decimal
	Total             decimal.Decimal
	PriceFeeTotalUnit string
}

Jump to

Keyboard shortcuts

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