1 Star 0 Fork 38

zhuzhenping / haifengat_goctp

forked from 海风 / goctp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

goctp

介绍

CTP 封装之 golang 版,支持 Windows Linux x64. 封装代码由 ctp_generate 生成

运行

环境变量

{
  "userID": "008105",
  "investorID": "",
  "password": "1",
  "brokerID": "9999",
  "appID": "simnow_client_test",
  "authCode": "看穿码",
  "tradeFront": "tcp://180.168.146.187:10202",
  "quoteFront": "tcp://180.168.146.187:10212"
}

示例

main.go

版本切换

复制官方库文件(_se.so _se.dll)覆盖到 lnx win 下同名文件即可。

QA

operator delete(void*, unsigned long)@CXXABI_1.3.9’未定义的引用

不同系统,不同版本的底层依赖不同 重新编译即可

视频资料

golang 环境-linux goctp 环境 -win 行情 demo 交易 demo 交易 板价追单 交易 追单-01 交易 追单-02 交易 板价止损 交易 追单止盈

MIT License Copyright (c) 2019 海风 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

CTP封装之golang版(支持windows linux x64) 展开 收起
Go
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Go
1
https://gitee.com/zhuzhenping/haifengat_goctp.git
git@gitee.com:zhuzhenping/haifengat_goctp.git
zhuzhenping
haifengat_goctp
haifengat_goctp
master

搜索帮助