model

package
v0.0.0-...-75d25b6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	ObjectID        string  `json:"_id" bson:"_id"`
	Code            string  `json:"code"`
	Name            string  `json:"name"`             // 0 股票简称
	Open            float64 `json:"open"`             // 1 今日开盘价格
	YesterdayClosed float64 `json:"yesterday-closed"` // 2 昨日收盘价格
	Latest          float64 `json:"latest"`           // 3 最近成交价格
	High            float64 `json:"high"`             // 4 最高成交价
	Low             float64 `json:"low"`              // 5 最低成交价
	Volume          uint64  `json:"volume"`           // 8 成交数量(股)
	Account         float64 `json:"account"`          // 9 成交金额(元)
	Date            string  `json:"date"`             // 30 日期
	Time            string  `json:"time"`             // 31 时间
	Suspend         string  `json:"suspend"`          // 32 停牌状态
}

Metadata trade data

func (*Metadata) Assign

func (m *Metadata) Assign(loc int, val string)

func (*Metadata) String

func (m *Metadata) String() string

Jump to

Keyboard shortcuts

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