Stock

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package Stock comment This file war generated by tars2go 1.1 Generated from stock.tars

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KLine

type KLine struct {
	Day        string  `json:"day"`
	Open       float64 `json:"open"`
	High       float64 `json:"high"`
	Low        float64 `json:"low"`
	Close      float64 `json:"close"`
	Volume     int64   `json:"volume"`
	MA5Price   float64 `json:"MA5Price"`
	MA5Volume  int64   `json:"MA5Volume"`
	MA10Price  float64 `json:"MA10Price"`
	MA10Volume int64   `json:"MA10Volume"`
	MA20Price  float64 `json:"MA20Price"`
	MA20Volume int64   `json:"MA20Volume"`
	MA30Price  float64 `json:"MA30Price"`
	MA30Volume int64   `json:"MA30Volume"`
}

KLine strcut implement

func (*KLine) ReadBlock

func (st *KLine) ReadBlock(_is *codec.Reader, tag byte, require bool) error

ReadBlock reads struct from the given tag , require or optional.

func (*KLine) ReadFrom

func (st *KLine) ReadFrom(_is *codec.Reader) error

ReadFrom reads from _is and put into struct.

func (*KLine) WriteBlock

func (st *KLine) WriteBlock(_os *codec.Buffer, tag byte) error

WriteBlock encode struct

func (*KLine) WriteTo

func (st *KLine) WriteTo(_os *codec.Buffer) error

WriteTo encode struct to buffer

Jump to

Keyboard shortcuts

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