factories

package
v0.0.0-...-e5e8b79 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PeriodFactory

type PeriodFactory struct{}

PeriodFactory is a factory of Periods. Each Period consolidates data about a range of changes, and can be obtained through the GetPeriod method.

func NewPeriodFactory

func NewPeriodFactory() *PeriodFactory

NewPeriodFactory returns a new instance of PeriodFactory.

func (*PeriodFactory) GetPeriod

func (factory *PeriodFactory) GetPeriod(trades model.Trades) *model.Period

GetPeriod consolidates information about a certain amount of trades, returning the high, low and closing value of the period.

Jump to

Keyboard shortcuts

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