mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
修复北交所(历史)分时成交小10倍的问题
This commit is contained in:
@@ -127,11 +127,15 @@ func GetTime(bs [4]byte, Type uint8) time.Time {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func basePrice(code string) Price {
|
func basePrice(code string) Price {
|
||||||
if len(code) == 0 {
|
if len(code) < 2 {
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
switch code[:1] {
|
||||||
|
case "8":
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
switch code[:2] {
|
switch code[:2] {
|
||||||
case "60", "30", "68", "00":
|
case "60", "30", "68", "00", "92", "43":
|
||||||
return 1
|
return 1
|
||||||
default:
|
default:
|
||||||
return 10
|
return 10
|
||||||
|
|||||||
Reference in New Issue
Block a user