quotation

package
v0.0.0-...-0a93553 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: BSD-2-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ChNewKline chan Klinetips
)

Functions

func GetRouter

func GetRouter(r *gin.Engine) *gin.Engine

func Init

func Init(db *xorm.Engine, r *redis.Client)

func NewKdataHandler

func NewKdataHandler(r *redis.Client, needPeriod []string) *kdataHandler

func Run

func Run(router *gin.Engine)

Types

type Klinetips

type Klinetips struct {
	Symbol string `json:"symbol"`
	Period string `json:"period"`

	OpenAt  int64  `json:"open_at"`  //开盘时间
	Open    string `json:"open"`     //开盘价
	High    string `json:"high"`     // 最高价
	Low     string `json:"low"`      //最低价
	Close   string `json:"close"`    //收盘价(当前K线未结束的即为最新价)
	Volume  string `json:"volume"`   //成交量
	CloseAt int64  `json:"close_at"` // 收盘时间
	Amount  string `json:"amount"`   //成交额

}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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