bitstamp

package
v0.0.0-...-6060dae Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Trans

func Trans(d *[]CSV, v *ledger.ViewData)

Convert to Ledger format and pack it up into ledger.ViewData

func UnmarshalCSV

func UnmarshalCSV(f *os.File, d *[]CSV)

Unmarshal the CSV into a struct

Types

type CSV

type CSV struct {
	Type     string `csv:"Type"`
	Datetime string `csv:"Datetime"`
	Account  string `csv:"Account"`
	Amount   string `csv:"Amount"`
	Value    string `csv:"Value"`
	Rate     string `csv:"Rate"`
	Fee      string `csv:"Fee"`
	SubType  string `csv:"Sub Type"`
}

A data structure to match the CSV from Bitstamp

Jump to

Keyboard shortcuts

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