data

module
v0.1.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2025 License: MIT

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

Path Synopsis
Package trading 包含交易中的日历和时段相关的功能函数
Package trading 包含交易中的日历和时段相关的功能函数
proto/ext
扩展协议包的定义
扩展协议包的定义
proto/std
标准协议包的定义
标准协议包的定义

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL