finance

package
v0.0.0-...-177a272 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSymbol

func NewSymbol(i int, start time.Time, interval time.Duration) common.Generator

func RandString

func RandString(size int) string

Types

type Price

type Price struct {
	*common.SubsystemMeasurement
}

func NewPrice

func NewPrice(start time.Time, interval time.Duration) *Price

func (*Price) ToPoint

func (price *Price) ToPoint(point *data.Point)

type Symbol

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

func (Symbol) Measurements

func (t Symbol) Measurements() []common.SimulatedMeasurement

func (Symbol) Tags

func (t Symbol) Tags() []common.Tag

func (*Symbol) TickAll

func (t *Symbol) TickAll(d time.Duration)

Jump to

Keyboard shortcuts

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