zszx

package
v0.0.0-...-69cf731 Latest Latest
Warning

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

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

Documentation

Overview

Package zszx 招商证券接口封装 https://zszx.cmschina.com/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetInflow

type NetInflow struct {
	// 交易日期
	TrdDt string `json:"TrdDt"`
	// 当日股价
	ClsPrc string `json:"ClsPrc"`
	// 主力净流入(万元)
	MainMnyNetIn string `json:"MainMnyNetIn"`
	// 超大单净流入(万元)
	HugeNetIn string `json:"HugeNetIn"`
	// 大单净流入(万元)
	BigNetIn string `json:"BigNetIn"`
	// 中单净流入(万元)
	MidNetIn string `json:"MidNetIn"`
	// 小单净流入(万元)
	SmallNetIn  string `json:"SmallNetIn"`
	TTLMnyNetIn string `json:"TtlMnyNetIn"`
}

NetInflow 资金净流入详情

type NetInflowList

type NetInflowList []NetInflow

NetInflowList 净流入详情列表

func (NetInflowList) String

func (n NetInflowList) String() string

func (NetInflowList) SumMainNetIn

func (n NetInflowList) SumMainNetIn(ctx context.Context) float64

SumMainNetIn 主力净流入列表求和

type RespMainMoneyNetInflows

type RespMainMoneyNetInflows struct {
	Success bool          `json:"success"`
	Message string        `json:"message"`
	Code    int           `json:"code"`
	Data    NetInflowList `json:"data"`
}

RespMainMoneyNetInflows QueryMainMoneyNetInflows 返回json结构

type Zszx

type Zszx struct {
	// http 客户端
	HTTPClient *http.Client
}

Zszx 招商证券接口

func NewZszx

func NewZszx() Zszx

NewZszx 创建 Zszx 实例

func (Zszx) QueryMainMoneyNetInflows

func (z Zszx) QueryMainMoneyNetInflows(ctx context.Context, secuCode, startDate, endDate string) (NetInflowList, error)

QueryMainMoneyNetInflows 查询主力资金净流入数据

Jump to

Keyboard shortcuts

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