mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
增加获取北京交易所股票列表,通达信好像没有北交所股票列表
This commit is contained in:
18
example/GetBjCodes/main.go
Normal file
18
example/GetBjCodes/main.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/injoyai/logs"
|
||||
"github.com/injoyai/tdx/extend"
|
||||
)
|
||||
|
||||
func main() {
|
||||
ls, err := extend.GetBjCodes()
|
||||
if err != nil {
|
||||
logs.Err(err)
|
||||
return
|
||||
}
|
||||
for _, v := range ls {
|
||||
logs.Debug(v)
|
||||
}
|
||||
logs.Debug("总数量:", len(ls))
|
||||
}
|
||||
Reference in New Issue
Block a user