加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
trade.go 980 Bytes
一键复制 编辑 原始数据 按行查看 历史
package goctp
type BaseTrade interface {
ReqConnect(addr string)
ReqLogin(investor, pwd, broker string)
Release()
ReqOrderInsert(instrument string, buySell DirectionType, openClose OffsetFlagType, price float64, volume int) string
ReqOrderInsertMarket(instrument string, buySell DirectionType, openClose OffsetFlagType, price float64, volume int) string
ReqOrderInsertFOK(instrument string, buySell DirectionType, openClose OffsetFlagType, price float64, volume int) string
ReqOrderInsertFAK(instrument string, buySell DirectionType, openClose OffsetFlagType, price float64, volume int) string
RegOnFrontConnected(on OnFrontConnectedType)
RegOnFrontDisConnected(on OnFrontDisConnectedType)
RegOnRspUserLogin(on OnRspUserLoginType)
RegOnRtnOrder(on OnRtnOrderType)
RegOnErrRtnOrder(on OnRtnErrOrderType)
RegOnErrAction(on OnRtnOrderType)
RegOnRtnCancel(on OnRtnOrderType)
RegOnRtnTrade(on OnRtnTradeType)
RegOnRtnInstrumentStatus(on OnRtnInstrumentStatusType)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化