bse

package
v0.0.55 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UrlCodes 最后跟的是时间戳(ms),但是随便什么时间戳都能请求成功
	UrlCodes = "https://www.bse.cn/nqhqController/nqhq_en.do?callback=jQuery3710848510589806625_%d"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code struct {
	Date      string  `json:"hqjsrq"` //日期
	Code      string  `json:"hqzqdm"` //代码
	Name      string  `json:"hqzqjc"` //名称
	LastClose float64 `json:"hqzrsp"` //前一天收盘价
	Open      float64 `json:"hqjrkp"` //开盘价
	High      float64 `json:"hqzgcj"` //最高价
	Low       float64 `json:"hqzdcj"` //最低价
	Last      float64 `json:"hqzjcj"` //最新价/收盘价
	Volume    int     `json:"hqcjsl"` //成交量,股
	Amount    float64 `json:"hqcjje"` //成交额,元
}

func GetCodes

func GetCodes() ([]*Code, error)

type Codes

type Codes struct {
	Data        []*Code `json:"content"`
	TotalNumber int     `json:"totalElements"`
	TotalPage   int     `json:"totalPages"`
	LastPage    bool    `json:"lastPage"`
}

Jump to

Keyboard shortcuts

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