domain

package
v0.0.0-...-272df7f Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const PEURL = "https://www.legulegu.com/api/stockdata/index-basic"

Variables

This section is empty.

Functions

func SingleFundHandler

func SingleFundHandler(ctx *gin.Context)

Types

type CrawlData

type CrawlData interface {
	Fetch() error
	Render() (interface{}, error)
}

type EmAccount

type EmAccount struct {
	Data []*emAccountData
}

func (*EmAccount) Fetch

func (e *EmAccount) Fetch() error

func (*EmAccount) Render

func (e *EmAccount) Render() (interface{}, error)

type EmNewFund

type EmNewFund struct {
	Data []*emNewFundData
}

func (*EmNewFund) Fetch

func (e *EmNewFund) Fetch() error

func (*EmNewFund) Len

func (e *EmNewFund) Len() int

func (*EmNewFund) Less

func (e *EmNewFund) Less(i, j int) bool

func (*EmNewFund) Render

func (e *EmNewFund) Render() (interface{}, error)

func (*EmNewFund) Swap

func (e *EmNewFund) Swap(i, j int)

type IndustryPETrend

type IndustryPETrend struct {
	Data s
}

func (*IndustryPETrend) Fetch

func (i *IndustryPETrend) Fetch() error

func (*IndustryPETrend) Render

func (i *IndustryPETrend) Render() (interface{}, error)

type PERecord

type PERecord struct {
	AVGPETTM              util.TolerantFloat `json:"ttmPe" ld:"avg_pe_ttm"`         // 等权滚动 pe
	WeightedPETTM         util.TolerantFloat `json:"addTtmPe" ld:"weighted_pe_ttm"` // 加权滚动 pe
	Date                  util.CustomDate    `json:"date" ld:"date"`
	AVGPETTMQuantile      util.TolerantFloat `json:"ttmPeQuantile" ld:"avg_pe_ttm_quantile"`         // 等权 pe 分位数
	WeightedPETTMQuantile util.TolerantFloat `json:"addTtmPeQuantile" ld:"weighted_pe_ttm_quantile"` // 加权 pe 分位数
	ClosePrice            util.TolerantFloat `json:"close" ld:"close_price"`
	MarketCode            dataGroup          `json:"industryCode" ld:"market_code"`
}

type PERecordSeries

type PERecordSeries [][]*PERecord

func (PERecordSeries) Len

func (p PERecordSeries) Len() int

func (PERecordSeries) Less

func (p PERecordSeries) Less(i, j int) bool

func (PERecordSeries) Swap

func (p PERecordSeries) Swap(i, j int)

type PETrend

type PETrend struct {
	Data [][]*PERecord
}

func (*PETrend) Fetch

func (P *PETrend) Fetch() error

func (*PETrend) Render

func (P *PETrend) Render() (interface{}, error)

Jump to

Keyboard shortcuts

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