data

package
v0.0.0-...-27964f3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchStock

func FetchStock(ctx context.Context, pipe chan *Stock) error

Types

type Quote

type Quote struct {
	Code            string  `json:"code"`
	Open            float64 `json:"opend"`
	Close           float64 `json:"close"`
	High            float64 `json:"high"`
	Low             float64 `json:"low"`
	YesterdayClosed float64 `json:"yesterday_closed"`
	Volume          int64   `json:"volume"`
	Account         float64 `json:"account"`
	Date            string  `json:"date"`
	NumOfYear       int32   `json:"num_of_year"`
}

func GetQuotesN

func GetQuotesN(ctx context.Context, date time.Time, code string, kind string, n int64) ([]*Quote, error)

func (*Quote) String

func (q *Quote) String() string

type Stock

type Stock struct {
	Code    string `json:"code"`
	Name    string `json:"name"`
	Suspend string `json:"suspend"`
}

func (*Stock) String

func (s *Stock) String() string

Jump to

Keyboard shortcuts

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