README ¶ gotdx golang实现的一个通达信数据协议库 1. 概要 整合了gotdx和TdxPy 增加了连接池的功能 自动探测主机网络速度 调用简单 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) } Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func GetTdxApi() *quotes.StdApi func ReOpen() 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. Source Files ¶ View all Source files tdx-client.go Directories ¶ Show internal Expand all Path Synopsis internal proto ext std quotes securities Click to show internal directories. Click to hide internal directories.