Skip to content

CTP封装之golang版(支持windows linux x64) [最新] gitee.com/haifengat/goctp

License

Notifications You must be signed in to change notification settings

haifengat/goctp

Repository files navigation

goctp

介绍

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

linux 推荐 v2 v2

运行

环境变量

{
	"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 交易 板价止损 交易 追单止盈