mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
增加判断是否是股票代码的判断
This commit is contained in:
@@ -195,6 +195,7 @@ func getVolume(val uint32) (volume float64) {
|
||||
return
|
||||
}
|
||||
|
||||
// IsStock 是否是股票,示例sz000001
|
||||
func IsStock(code string) bool {
|
||||
if len(code) != 8 {
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user