Documentation ¶
Index ¶
- type AccountArgs
- type AccountReply
- type AlarmArgs
- type AlarmReply
- type Api
- type Args
- type Common
- type FutureInfoArgs
- type FutureInfoReply
- type HistoryArgs
- type HistoryReply
- type IndicatorArgs
- type IndicatorFlagArgs
- type IndicatorFlagReply
- type IndicatorReply
- type InstrumentOneArgs
- type InstrumentOneReply
- type InstrumentPositionArgs
- type InstrumentPositionReply
- type InstrumentStatusArgs
- type InstrumentStatusReply
- type InstrumentsArgs
- type InstrumentsReply
- type KlineArgs
- type KlineReplayArgs
- type KlineReplayExArgs
- type KlineReplayExReply
- type KlineReplayReply
- type KlineReply
- type LastPriceArgs
- type LastPriceReply
- type NotifyIndicator
- type OrderCancelArgs
- type OrderCancelReply
- type OrderErrArgs
- type OrderErrReply
- type OrderInsertArgs
- type OrderInsertReply
- type OrderRtnArgs
- type OrderRtnErrArgs
- type OrderRtnErrReply
- type OrderRtnReply
- type OrderTradeRtnArgs
- type OrderTradeRtnReply
- type OrdersArgs
- type OrdersReply
- type PluginArgs
- type PluginKlineArgs
- type PluginKlineReply
- type PluginPositionArgs
- type PluginPositionReply
- type PluginQuoteArgs
- type PluginQuoteReply
- type PluginReply
- type PositionsArgs
- type PositionsReply
- type ProgressArgs
- type ProgressReply
- type QuoteArgs
- type QuoteReply
- type ReplayArgs
- type ReplayArgsEx
- type ReplayReply
- type ReplayReplyEx
- type Reply
- type RequestIDArgs
- type RequestIDReply
- type StaInfoReply
- type TickArgs
- type TickReply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountReply ¶
type AccountReply struct { Code int Msg string Account common.AccountField }
type AlarmReply ¶
type FutureInfoReply ¶
type HistoryReply ¶
type IndicatorFlagReply ¶
type IndicatorReply ¶
type InstrumentOneReply ¶
type InstrumentPositionArgs ¶
type InstrumentPositionArgs struct {
Position goctp.PositionField
}
*
- @Description: 合约持仓变化
type InstrumentPositionReply ¶
type InstrumentStatusArgs ¶
type InstrumentStatusArgs struct {
InstrumentStatus common.InstrumentStatus
}
*
- @Description: 合约状态变化
type InstrumentStatusReply ¶
type InstrumentsReply ¶
type InstrumentsReply struct { Code int Msg string Instruments []goctp.InstrumentField }
type KlineReplayArgs ¶
type KlineReplayArgs struct { StartDate string EndDate string SubscribeKline []common.ReplaySubscribeKline }
*
- @Description: 回测K线请求
- @Symbol: 合约代码
- @Period: 周期
- @StaName: 策略名称
type KlineReplayExArgs ¶
type KlineReplayExArgs struct { StartDate string EndDate string Count int64 SubscribeKline []common.ReplaySubscribeKline }
*
- @Description: 回测K线请求
- @Symbol: 合约代码
- @Period: 周期
- @StaName: 策略名称
type KlineReplayExReply ¶
type KlineReplayExReply struct { Code int Msg string StaName string Symbol string Period string Kline []common.Kline2 }
*
- @Description: 回测K线响应
- @Code: 返回码
- @Msg: 消息
- @Symbol: 合约代码
- @Period: 周期
- @StaName: 策略名称
type KlineReplayReply ¶
*
- @Description: 回测K线响应
- @Code: 返回码
- @Msg: 消息
- @Symbol: 合约代码
- @Period: 周期
- @StaName: 策略名称
type KlineReply ¶
type NotifyIndicator ¶
type NotifyIndicator struct { Action string `json:"action"` StaName string `json:"staname"` Indicators map[string]string }
*
- @Description: 通知指标消息
type OrderCancelReply ¶
type OrderErrArgs ¶
type OrderErrArgs struct {
RspInfoField common.RspInfoField
}
*
- @Description: 报单错误
type OrderErrReply ¶
type OrderInsertArgs ¶
type OrderInsertArgs struct { StaName string Symbol string Exchange string Price float64 Volume int64 OType string Direction string Offset string }
*
- @Description: 报单请求
- @param requestid 请求id
- @param ordersn 订单编号
- @param staname 策略名称
- @param symbol 合约代码
- @param price 价格
- @param volume 数量
- @param otype 订单价格类型 PRICEMARKET:市价/PRICELIMIT:限价
- @param direction 交易方向
- @param offset 开平仓 TRADEOPEN:开仓/TRADECLOSE:平仓
type OrderInsertReply ¶
type OrderRtnErrArgs ¶
type OrderRtnErrArgs struct {
OrderErrField common.OrderErrField
}
*
- @Description: 报单错误
type OrderRtnErrReply ¶
type OrderRtnReply ¶
type OrderTradeRtnArgs ¶
type OrderTradeRtnArgs struct { TradeField common.TradeField Datetime int64 `json:"datetime"` }
*
- @Description: 成交
type OrderTradeRtnReply ¶
type PluginArgs ¶
type PluginArgs struct { StaName string `json:"staname"` State int64 `json:"state"` MainSymbol string `json:"mainsymbol"` MainVirtualPosition int64 `json:"mainvirtualposition"` MainLongOrderPosition int64 `json:"mainlongorderposition"` MainShortOrderPosition int64 `json:"mainshortorderposition"` MainLongRealPosition int64 `json:"mainlongrealposition"` MainShortRealPosition int64 `json:"mainshortrealposition"` SubSymbol string `json:"subsymbol"` SubVirtualPosition int64 `json:"subvirtualposition"` SubLongOrderPosition int64 `json:"sublongorderposition"` SubShortOrderPosition int64 `json:"subshortorderposition"` SubLongRealPosition int64 `json:"sublongrealposition"` SubShortRealPosition int64 `json:"subshortrealposition"` }
*
- @Description: 插件状态变化
type PluginKlineReply ¶
type PluginPositionReply ¶
type PluginQuoteReply ¶
type PluginReply ¶
type PositionsReply ¶
type PositionsReply struct { Code int Msg string Positions []goctp.PositionField }
type ProgressArgs ¶
type ProgressArgs struct { StaName string `json:"staname"` Current int64 `json:"current"` Total int64 `json:"total"` }
*
- @Description: 插件进度变化
type ProgressReply ¶
type QuoteReply ¶
type ReplayArgsEx ¶
type ReplayReply ¶
type ReplayReplyEx ¶
type RequestIDReply ¶
type StaInfoReply ¶
type StaInfoReply struct { Code int Msg string Data common.StrategyAggInfo }
*
- @Description: 策略信息响应
Click to show internal directories.
Click to hide internal directories.