pkg

package
v0.0.0-...-d01a2bb Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Calculate

func Calculate(sheet [][]string) []byte

func CsvHandler

func CsvHandler(w http.ResponseWriter, r *http.Request)

func CsvReader

func CsvReader(filename string)

Types

type Position

type Position struct {
	Symbol string  `json:"Symbol"`
	Qty    int     `json:"Qty"`
	ACB    float64 `json:"ACB"`
	CG     float64 `json:"Capital Gains"`
	TACB   float64 `json:"Total Proceeds ACB"`
	TPCD   float64 `json:"Total Proceeds"`
	TCOM   float64 `json:"Total Commision"`
}

type Transaction

type Transaction struct {
	Symbol        string
	DateTime      time.Time
	ShareQty      int
	PricePerShare float64
	Proceeds      float64
	Commission    float64
}

Jump to

Keyboard shortcuts

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