module
Version:
v0.1.12
Opens a new window with list of versions in this module.
Published: Dec 7, 2025
License: MIT
Opens a new window with license information.
README
¶
data
量化交易必备的数据集合
1. 概要
2. 第一次使用, 获取日K线
第一次运行时, 连接池会探测服务器网络速度会慢一些, 网络测速后会缓存到本地。
package main
import (
"fmt"
"gitee.com/quant1x/data/level1"
"gitee.com/quant1x/data/level1/proto"
)
func main() {
api := level1.GetApi()
klines, err := api.GetKLine("sh600600", proto.KLINE_TYPE_RI_K, 0, 1)
fmt.Println(err)
fmt.Println(klines)
}
Directories
¶
Package trading 包含交易中的日历和时段相关的功能函数
|
Package trading 包含交易中的日历和时段相关的功能函数 |
|
|
|
|
|
|
|
|
|
|
|
扩展协议包的定义 |
|
|
标准协议包的定义 |
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.