{"id":44225333,"url":"https://github.com/bensema/gotdx","last_synced_at":"2026-02-10T05:09:08.031Z","repository":{"id":65594529,"uuid":"520526402","full_name":"bensema/gotdx","owner":"bensema","description":"通达信行情API","archived":false,"fork":false,"pushed_at":"2024-10-13T09:14:12.000Z","size":42,"stargazers_count":41,"open_issues_count":2,"forks_count":19,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-21T06:30:57.420Z","etag":null,"topics":["api","go","tdx"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bensema.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-02T14:14:35.000Z","updated_at":"2024-12-20T07:35:53.000Z","dependencies_parsed_at":"2023-02-16T13:50:18.721Z","dependency_job_id":"e6ed81d8-f49f-4636-8666-3ad275690603","html_url":"https://github.com/bensema/gotdx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bensema/gotdx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensema%2Fgotdx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensema%2Fgotdx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensema%2Fgotdx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensema%2Fgotdx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bensema","download_url":"https://codeload.github.com/bensema/gotdx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensema%2Fgotdx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29290996,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T03:42:42.660Z","status":"ssl_error","status_checked_at":"2026-02-10T03:42:41.897Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","go","tdx"],"created_at":"2026-02-10T05:09:07.224Z","updated_at":"2026-02-10T05:09:08.023Z","avatar_url":"https://github.com/bensema.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gotdx\n通达信股票行情API golang版\n\n\n## API\n- Connect 连接券商行情服务器\n- Disconnect 断开服务器\n- GetSecurityCount 获取指定市场内的证券数目\n- GetSecurityQuotes 获取盘口五档报价\n- GetSecurityList 获取市场内指定范围内的所有证券代码\n- GetSecurityBars 获取股票K线\n- GetIndexBars 获取指数K线\n- GetMinuteTimeData 获取分时图数据\n- GetHistoryMinuteTimeData 获取历史分时图数据\n- GetTransactionData 获取分时成交\n- GetHistoryTransactionData 获取历史分时成交\n\n\n## Example\n```go\npackage main\n\nimport (\n\t\"github.com/bensema/gotdx\"\n\t\"log\"\n)\n\nfunc main() {\n\t// ip地址如果失效，请自行替换\n\ttdx := gotdx.New(gotdx.WithTCPAddress(\"124.71.187.122:7709\"))\n\t_, err := tdx.Connect()\n\tif err != nil {\n\t\tlog.Fatalln(err)\n\t}\n\tdefer tdx.Disconnect()\n\n\treply, err := tdx.GetSecurityQuotes([]uint8{gotdx.MarketSh, gotdx.MarketSz}, []string{\"000001\", \"600008\"})\n\tif err != nil {\n\t\tlog.Println(err)\n\t}\n\n\tfor _, obj := range reply.List {\n\t\tlog.Printf(\"%+v\", obj)\n\t}\n}\n\n\n```\n\n\n## Test\n```bash\n go test\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbensema%2Fgotdx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbensema%2Fgotdx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbensema%2Fgotdx/lists"}