This commit is contained in:
2026-02-26 16:53:51 +08:00
parent f29265c0e4
commit 1e4a361f3c
5 changed files with 144 additions and 5 deletions

17
cmd/rk/main.go Normal file
View File

@@ -0,0 +1,17 @@
package main
import (
"fmt"
"git.apinb.com/quant/gostock/internal/logic/libs"
)
func main() {
// 示例获取贵州茅台sh600519的最新价
price, err := libs.GetSinaStockPrice("600519.SH")
if err != nil {
fmt.Printf("获取失败: %v\n", err)
return
}
fmt.Printf("贵州茅台最新价: %.2f\n", price)
}