output

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHeaders

func GetHeaders() []string

func NewHoldingSummary

func NewHoldingSummary(holdings ...*instruments.Holding) *holdingSummary

func ToCSV

func ToCSV(data [][]string, pathName string)

func ToJSON

func ToJSON(data [][]string, pathName string)

Types

type Format

type Format uint
const (
	CSV Format = iota
	JSON
)

type PerformanceLog

type PerformanceLog struct {
	// contains filtered or unexported fields
}

PerformanceLog tracks closed orders and holdings.

func (*PerformanceLog) AddHoldings

func (plog *PerformanceLog) AddHoldings(holdings ...*instruments.Holding)

func (*PerformanceLog) AddOrders

func (plog *PerformanceLog) AddOrders(orders ...*instruments.Order)

func (*PerformanceLog) OutputResults

func (plog *PerformanceLog) OutputResults(format Format, pathName string)

Jump to

Keyboard shortcuts

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