mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
准备解析k线图
This commit is contained in:
@@ -71,13 +71,17 @@ func IntUnitString(n int) string {
|
||||
return FloatUnitString(float64(n))
|
||||
}
|
||||
|
||||
func GetTime(bs [2]byte) string {
|
||||
func GetDate(bs [2]byte) string {
|
||||
n := Uint16(bs[:])
|
||||
h := n / 60
|
||||
m := n % 60
|
||||
return fmt.Sprintf("%02d:%02d", h, m)
|
||||
}
|
||||
|
||||
func GetTime(bs [4]byte) string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func basePrice(code string) Price {
|
||||
if len(code) == 0 {
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user