transactions

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTransaction

func AddTransaction(ticker string, price float64, shares int, category string, date string, lastPrice float64)

func CreateTransactionsTable

func CreateTransactionsTable()

func ListAllTransactions

func ListAllTransactions() []objects.Transaction

func RemoveTransaction

func RemoveTransaction(id int)

Types

type TransactionSum

type TransactionSum struct {
	Ticker        string
	Shares        int
	PurchaseValue float64
}

func ReportRequest

func ReportRequest(command string, commandValue string) []TransactionSum

Jump to

Keyboard shortcuts

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