2024-10-30 22:49:14 +08:00
2024-10-30 22:49:14 +08:00
2024-10-30 22:46:26 +08:00
2024-10-30 22:47:19 +08:00
2024-10-29 14:54:58 +08:00
2024-10-30 22:45:06 +08:00
2024-10-28 14:15:37 +08:00
2024-10-28 14:15:37 +08:00
2024-10-30 22:49:14 +08:00

拉取通达信的数据

参考 https://github.com/bensema/gotdx

开发进度

  • 基本信息(5档报价)
  • 股票列表
  • 分时成交
  • K线

数据校对

  • 日K线校对

  • 校对分时成交

如何使用

package main

import (
	"fmt"
	"github.com/injoyai/tdx"
	"github.com/injoyai/tdx/protocol"
)

func main() {
	//连接服务器,开启日志,开启断连重试
	c, err := tdx.Dial("124.71.187.122:7709", tdx.WithDebug(true), tdx.WithRedial(true))
	if err != nil {
		panic(err)
	}
	resp, err := c.GetStockQuotes(map[protocol.Exchange]string{
		protocol.ExchangeSH: "000001",
		protocol.ExchangeSZ: "600008",
	})
	if err != nil {
		panic(err)
	}

	for _, v := range resp {
		fmt.Printf("%#v\n", v)
	}
	<-c.Done()
}

IP地址

IP 检查时间
124.71.187.122 2024-10-30
122.51.120.217 2024-10-30
待补充 2024-10-30
Description
通达信的协议解析,用于获取股票信息
Readme MIT 2 MiB
Languages
Go 100%