gotdx

package module
v1.22.9 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 2 Imported by: 9

README

gotdx

golang实现的一个通达信数据协议库

1. 概要

  • 整合了gotdxTdxPy
  • 增加了连接池的功能
  • 自动探测主机网络速度
  • 调用简单

2. 第一次使用, 获取日K线

第一次运行时, 连接池会探测服务器网络速度会慢一些, 网络测速后会缓存到本地。

package main

import (
	"fmt"
	"gitee.com/quant1x/gotdx"
	"gitee.com/quant1x/gotdx/proto"
)

func main() {
	api := gotdx.GetTdxApi()
	klines, err := api.GetKLine("sh600600", proto.KLINE_TYPE_RI_K, 0, 1)
	fmt.Println(err)
	fmt.Println(klines)
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTdxApi

func GetTdxApi() *quotes.StdApi

func ReOpen

func ReOpen()

Types

This section is empty.

Directories

Path Synopsis
ext
std

Jump to

Keyboard shortcuts

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