mirror of
https://github.com/ArvinLovegood/go-stock.git
synced 2025-07-19 00:00:09 +08:00
19 lines
390 B
Go
19 lines
390 B
Go
package data
|
|
|
|
import (
|
|
"go-stock/backend/db"
|
|
"testing"
|
|
)
|
|
|
|
// @Author spark
|
|
// @Date 2025/2/17 12:44
|
|
// @Desc
|
|
// -----------------------------------------------------------------------------------
|
|
func TestGetDaily(t *testing.T) {
|
|
db.Init("../../data/stock.db")
|
|
tushareApi := NewTushareApi(getConfig())
|
|
res := tushareApi.GetDaily("000802.SZ", "20250101", "20250217", 30)
|
|
t.Log(res)
|
|
|
|
}
|