service

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Buy

func Buy()

func RegisterModel

func RegisterModel(m *Model)

func ScanModel

func ScanModel(k *chart.K) (int, bool, error)

func Sell

func Sell()

Types

type MarketIndex

type MarketIndex struct {
	ShangZheng Point
	ShenZheng  Point
	ChuangYe   Point
	BeiZheng50 Point
	KeChuang50 Point
}

type MarketStatus

type MarketStatus struct {
	Date string
	Week string

	MarketIndex      MarketIndex
	MarketStockCount MarketStockCount
}

func ReportMarketStatus

func ReportMarketStatus(ctx context.Context, date time.Time, kind string) (*MarketStatus, error)

func (*MarketStatus) String

func (m *MarketStatus) String() string

type MarketStockCount

type MarketStockCount struct {
	Total    int64
	Rise     int64
	RiseGT7  int64
	RiseGT15 int64
	Fell     int64
	FellGT7  int64
	FellGT15 int64
}

type Model

type Model struct {
	Name string
	Desc string

	C func(int) bool
	F func(*chart.K) (int, error)
}

type Point

type Point struct {
	Value      float64
	HasChanged float64
}

Jump to

Keyboard shortcuts

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