mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
25 lines
393 B
Go
25 lines
393 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"github.com/injoyai/logs"
|
|
"github.com/injoyai/tdx"
|
|
"github.com/injoyai/tdx/extend"
|
|
"path/filepath"
|
|
)
|
|
|
|
func main() {
|
|
|
|
m, err := tdx.NewManage(nil)
|
|
logs.PanicErr(err)
|
|
|
|
err = extend.NewPullKline(
|
|
[]string{"sz000001"},
|
|
[]string{extend.Year},
|
|
filepath.Join(tdx.DefaultDatabaseDir, "kline"),
|
|
1,
|
|
).Run(context.Background(), m)
|
|
logs.PanicErr(err)
|
|
|
|
}
|