mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
增加同花顺的复权日线数据接口,拉取测试通过(无成交金额数据),后续应该会转移位置
This commit is contained in:
18
extend/spider_ths_test.go
Normal file
18
extend/spider_ths_test.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package extend
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestNewSpiderTHS(t *testing.T) {
|
||||
x := NewTHSDayKline()
|
||||
ls, err := x.Pull(context.Background(), "sz000001", THS_HFQ)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
return
|
||||
}
|
||||
for _, v := range ls {
|
||||
t.Log(v)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user