校对了数据,上海的没啥问题,深圳的还不行

This commit is contained in:
钱纯净
2024-10-24 22:23:06 +08:00
parent 1bdc7ef8e1
commit 9c7923d939
6 changed files with 107 additions and 81 deletions

View File

@@ -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{}