mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
解析了5档价格,简单对了下开盘,收盘,最高,最低 好像没啥问题
This commit is contained in:
@@ -34,7 +34,7 @@ func main() {
|
||||
logs.PrintErr(err)
|
||||
|
||||
for _, v := range resp {
|
||||
logs.Debug(*v)
|
||||
logs.Debugf("%#v\n", v)
|
||||
}
|
||||
|
||||
select {}
|
||||
|
||||
@@ -13,7 +13,7 @@ func (this Price) Float64() float64 {
|
||||
}
|
||||
|
||||
func (this Price) String() string {
|
||||
return fmt.Sprintf("%.2f 元", this.Float64())
|
||||
return fmt.Sprintf("%0.2f 元", this.Float64())
|
||||
}
|
||||
|
||||
type PriceLevel struct {
|
||||
|
||||
Reference in New Issue
Block a user