1 Star 0 Fork 40

QinLikang / hf_go_ctp

forked from zhuzhenping / hf_goctp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
callback.go 683 Bytes
一键复制 编辑 原始数据 按行查看 历史
海风 提交于 2020-12-25 22:57 . 更新:Map的值统一为指针
package goctp
// 公共-连接
type OnFrontConnectedType func()
// 公共-断开
type OnFrontDisConnectedType func(reason int)
// 公共-登录
type OnRspUserLoginType func(loginField *RspUserLoginField, info *RspInfoField)
// 行情
type OnTickType func(tick *TickField)
// 交易-委托响应
type OnRtnOrderType func(field *OrderField)
// 交易-错误委托
type OnRtnErrOrderType func(field *OrderField, info *RspInfoField)
// 交易-错误撤单
type OnRtnErrActionType func(orderID string, info *RspInfoField)
// 交易-成交响应
type OnRtnTradeType func(field *TradeField)
// 交易-合约状态响应
type OnRtnInstrumentStatusType func(field *InstrumentStatus)
Go
1
https://gitee.com/qinlk/hf_go_ctp.git
git@gitee.com:qinlk/hf_go_ctp.git
qinlk
hf_go_ctp
hf_go_ctp
master

搜索帮助