output

package
v0.0.0-...-b2e716b Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResults

func GetResults(outputFormat Format, closed *collection.HoldingList, benchmark *collection.HoldingList)

GetResults ...TODO

Types

type Format

type Format int

Format ...

const (
	CSV Format = iota
)

Output specifies Format of results wanted

type PositionLog

type PositionLog struct {
	ClosedPositions *collection.HoldingList
}

PositionLog allows for performance analysis.

func NewPositionLog

func NewPositionLog() *PositionLog

func (*PositionLog) Insert

func (p *PositionLog) Insert(securities ...*instrument.Security) error

Insert adds a closed holding to the performance log's closed holdings slice.

Jump to

Keyboard shortcuts

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