mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
整理代码
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"github.com/injoyai/logs"
|
||||
"github.com/injoyai/tdx"
|
||||
"github.com/injoyai/tdx/extend"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -12,7 +13,12 @@ func main() {
|
||||
m, err := tdx.NewManage(nil)
|
||||
logs.PanicErr(err)
|
||||
|
||||
err = extend.NewPullKline([]string{"sz000001"}, []string{"year"}, "./data/database/kline", 1).Run(context.Background(), m)
|
||||
err = extend.NewPullKline(
|
||||
[]string{"sz000001"},
|
||||
[]string{extend.Year},
|
||||
filepath.Join(tdx.DefaultDatabaseDir, "kline"),
|
||||
1,
|
||||
).Run(context.Background(), m)
|
||||
logs.PanicErr(err)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user