stocklib

package
v0.0.0-...-5349422 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2017 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGif

func GetGif(typeGif, salesCity, stockCode string) (ok bool)

GetGif ...

func GetSalesCity

func GetSalesCity(stockId string) (city string)

Types

type StockPriceInfo

type StockPriceInfo struct {
	SalesCity             string  // 交易市场 “sz”  "sh"
	StockID               string  // 股票代码
	StockName             string  // 股票名字
	OpeningPriceToday     float64 // 今日开盘价
	ClosingPriceYesterday float64 // 昨日收盘价
	PriceNow              float64 // 当前价格
	HighestPriceToday     float64 // 今日最高价
	LowestPriceToday      float64 // 今日最低价
	BuyPrice              float64 // 竞买价 买一
	SellPrice             float64 // 竞卖价 卖一
	//成交股票数,由于股票交易以一百股为基本单位,所以在使用时,通常把该值除以一百;
	TradedNumber uint64
	//成交金额,单位为“元”,为了一目了然,通常以“万元”为成交金额的单位,所以通常把该值除以一万;
	TradedAmount float64
	BuyHands1    float64 // 买一申请手
	BuyPrice1    float64 // 买一申请价格
	BuyHands2    float64 // 买二申请手
	BuyPrice2    float64 // 买二申请价格
	BuyHands3    float64 // 买三申请手
	BuyPrice3    float64 // 买三申请价格
	BuyHands4    float64 // 买四申请手
	BuyPrice4    float64 // 买四申请价格
	BuyHands5    float64 // 买五申请手
	BuyPrice5    float64 // 买五申请价格
	SoldHands1   float64 // 卖一申请手
	SoldPrice1   float64 // 卖一申请价格
	SoldHands2   float64 // 卖二申请手
	SoldPrice2   float64 // 卖二申请价格
	SoldHands3   float64 // 卖三申请手
	SoldPrice3   float64 // 卖三申请价格
	SoldHands4   float64 // 卖四申请手
	SoldPrice4   float64 // 卖四申请价格
	SoldHands5   float64 // 卖五申请手
	SoldPrice5   float64 // 卖五申请价格
	Data         string  // 日期
	Time         string  // 时间
}

StockPriceInfo 股票价格信息

func (*StockPriceInfo) GetStockInfo

func (s *StockPriceInfo) GetStockInfo() (stockPriceInfo *StockPriceInfo, ok bool)

GetStockInfo 获取股票信息

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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