goronext

package module
v0.0.0-...-3a6738b Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2022 License: MIT Imports: 9 Imported by: 0

README

goronext

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePrice

func ParsePrice(price string) (int, error)

Types

type CompanyInfo

type CompanyInfo struct {
	SRD  bool
	Loan bool
}

func GetCompanyInfo

func GetCompanyInfo(id string, market string) (*CompanyInfo, error)

type RawData

type RawData struct {
	Rows []struct {
		Tprice    string `json:"price"`
		Ttime     string `json:"time"`
		Ttrade_id string `json:"tradeId"`
		Ttype_    string `json:"type"`
		Tvolume   string `json:"volume"`
	} `json:"rows"`
}

type Stock

type Stock struct {
	ID       string
	Symbol   string
	Name     string
	Exchange string
	Market   string
}

func FindAllStock

func FindAllStock() (stocks []*Stock, err error)

type Trade

type Trade struct {
	Price     int
	Time      *time.Time
	TradeId   string
	TradeType string
	Volume    float64
}

func GetAllIntraDay

func GetAllIntraDay(id, market, amount string, when time.Time) ([]*Trade, error)

Jump to

Keyboard shortcuts

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