拉取通达信的数据

参考 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
111.229.247.189 2024-11-04
124.70.199.56 2024-11-04
124.70.176.52 2024-11-04
124.70.133.119 2024-11-04
123.60.84.66 2024-11-04
123.60.73.44 2024-11-04
123.60.70.228 2024-11-04
123.60.186.45 2024-11-04
123.40.164.122 2024-11-04
123.249.15.60 2024-11-04
122.51.232.182 2024-11-04
121.36.81.195 2024-11-04
121.36.54.217 2024-11-04
121.36.225.169 2024-11-04
120.46.186.223 2024-11-04
119.97.185.59 2024-11-04
118.25.98.114 2024-11-04
116.205.183.150 2024-11-04
116.205.171.132 2024-11-04
116.205.163.254 2024-11-04
111.230.186.52 2024-11-04
110.41.4.4 2024-11-04
110.41.2.72 2024-11-04
110.41.154.219 2024-11-04
110.41.147.114 2024-11-04
待补充 2024-11-04
Description
通达信的协议解析,用于获取股票信息
Readme MIT 2 MiB
Languages
Go 100%