修复北交所(历史)分时成交小10倍的问题

This commit is contained in:
injoyai
2025-09-30 11:41:13 +08:00
parent fab9e92fcd
commit 578617e458

View File

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