data

package
v0.0.0-...-378a548 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDataWrapperChannel

func NewDataWrapperChannel(mode DateType, date string) (chan *DataWrapper, error)

Types

type D

type D struct {
	Quote *pb.Quote `json:"quote"`

	MA_10 float64 `json:"ma_10,omitempty"`
	MA_50 float64 `json:"ma_50,omitempty"`
	MA150 float64 `json:"ma150,omitempty"`
	MA200 float64 `json:"ma200,omitempty"`
}

func (*D) String

func (d *D) String() string

type DataWrapper

type DataWrapper struct {
	Type DateType `json:"type"`

	Stock *pb.Stock `json:"stock"`
	Data  []*D      `json:"data"`
}

func (*DataWrapper) String

func (d *DataWrapper) String() string

type DateType

type DateType int
const (
	DAY DateType
	WEEK
)

Jump to

Keyboard shortcuts

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