mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
校对了数据,上海的没啥问题,深圳的还不行
This commit is contained in:
@@ -17,8 +17,8 @@ func (this Price) String() string {
|
||||
}
|
||||
|
||||
type PriceLevel struct {
|
||||
Price Price
|
||||
Vol int
|
||||
Price Price //价
|
||||
Vol int //量,是否是成交量?
|
||||
}
|
||||
|
||||
// K k线图
|
||||
@@ -30,6 +30,10 @@ type K struct {
|
||||
Close Price //今日收盘价
|
||||
}
|
||||
|
||||
func (this K) String() string {
|
||||
return fmt.Sprintf("昨收:%0.2f, 今开:%0.2f, 最高:%0.2f, 最低:%0.2f, 今收:%0.2f", this.Last.Float64(), this.Open.Float64(), this.High.Float64(), this.Low.Float64(), this.Close.Float64())
|
||||
}
|
||||
|
||||
func DecodeK(bs []byte) ([]byte, K) {
|
||||
k := K{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user