GithubHelp home page GithubHelp logo

gotdx's Introduction

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)
}

gotdx's People

Contributors

mymmsc avatar mephistophilis avatar xubojam avatar

Stargazers

はるか avatar sharkblue avatar Regan avatar  avatar hookover avatar entimm avatar wenym8 avatar 小小怪 avatar 皮少庭 avatar  avatar li avatar  avatar  avatar  avatar  avatar Rooit avatar  avatar XJhrack avatar  avatar  avatar  avatar  avatar dhc-gaoqiang avatar  avatar

Watchers

 avatar  avatar

gotdx's Issues

请问这个是不能用了吗?

调用获取线 然后这个提示

尊敬的投资者:您当前使用的招商证券交易软件已长期停止更新维护,且后续不再提供更新维护,存在交易、理财功能缺失,存在账户安全风险隐患,可能会造成您的财产权益损失。
现我司决定将于2023年8月31日将此客户端下线停止使用,我司已提供招商证券(PC)版可完全替代此客户端,为了保护您的合法权益及资金安全,请您点击下方"升级到新版本"按钮进行升级。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.