Documentation
¶
Overview ¶
Package DataType is a generated protocol buffer package.
It is generated from these files:
DataType.proto
It has these top-level messages:
OrderInfo PositionInfo TimeDuration AlgoInfo ReqTickerInfo RspTickerInfo ReqSendOrder RspSendOrder ReqCancelOrder RspCancelOrder ReqOrdersInfo RspOrdersInfo ReqPosition RspPosition ReqAccount RspAccount ReqAlgoOrder RspAlgoOrder DepthMarketData StaticMarketData TOHLCV ReqKLine RspKLine ReqTick RspTick HeartBeat
Index ¶
- Constants
- Variables
- func Equ(a, b float64) bool
- func MakeID(name string) uint64
- func Roll(in float64) float64
- type AlgoInfo
- func (m *AlgoInfo) GetAccount() string
- func (m *AlgoInfo) GetAlgoName() string
- func (m *AlgoInfo) GetExchangeName() string
- func (m *AlgoInfo) GetForce() bool
- func (m *AlgoInfo) GetLongVolume() uint64
- func (m *AlgoInfo) GetMaxLongPrice() float64
- func (m *AlgoInfo) GetMinShortPrice() float64
- func (m *AlgoInfo) GetQuoteName() string
- func (m *AlgoInfo) GetShortVolume() uint64
- func (m *AlgoInfo) GetStrategyName() string
- func (m *AlgoInfo) GetTickerName() string
- func (m *AlgoInfo) GetValidTimes() []*TimeDuration
- func (*AlgoInfo) ProtoMessage()
- func (m *AlgoInfo) Reset()
- func (m *AlgoInfo) String() string
- type ConstDefine
- type DepthMarketData
- func (m *DepthMarketData) GetBuyPrice() []float64
- func (m *DepthMarketData) GetBuyVolume() []uint64
- func (m *DepthMarketData) GetLastPrice() float64
- func (m *DepthMarketData) GetLocalTime() uint64
- func (m *DepthMarketData) GetOpenInterest() uint64
- func (m *DepthMarketData) GetOrder() []*OrderInfo
- func (m *DepthMarketData) GetPosition() []*PositionInfo
- func (m *DepthMarketData) GetSellPrice() []float64
- func (m *DepthMarketData) GetSellVolume() []uint64
- func (m *DepthMarketData) GetSettlement() float64
- func (m *DepthMarketData) GetTickerName() string
- func (m *DepthMarketData) GetTime() uint64
- func (m *DepthMarketData) GetTurnover() float64
- func (m *DepthMarketData) GetType() ConstDefine
- func (m *DepthMarketData) GetVolume() uint64
- func (*DepthMarketData) ProtoMessage()
- func (m *DepthMarketData) Reset()
- func (m *DepthMarketData) String() string
- type HeartBeat
- type MessageHead
- type OrderDirect
- type OrderInfo
- func (m *OrderInfo) GetAccount() string
- func (m *OrderInfo) GetDirect() OrderDirect
- func (m *OrderInfo) GetExplain() string
- func (m *OrderInfo) GetIsForce() bool
- func (m *OrderInfo) GetIsToday() bool
- func (m *OrderInfo) GetLastFilled() uint64
- func (m *OrderInfo) GetLastMatchTime() uint64
- func (m *OrderInfo) GetOpenClose() OrderOpenClose
- func (m *OrderInfo) GetOrderID() string
- func (m *OrderInfo) GetPrice() float64
- func (m *OrderInfo) GetStatus() OrderStatus
- func (m *OrderInfo) GetTickerName() string
- func (m *OrderInfo) GetTime() uint64
- func (m *OrderInfo) GetTotalFilled() uint64
- func (m *OrderInfo) GetVolume() uint64
- func (*OrderInfo) ProtoMessage()
- func (m *OrderInfo) Reset()
- func (m *OrderInfo) String() string
- type OrderOpenClose
- type OrderStatus
- type PositionInfo
- func (m *PositionInfo) GetAccount() string
- func (m *PositionInfo) GetClosingLongVolume() uint64
- func (m *PositionInfo) GetClosingShortVolume() uint64
- func (m *PositionInfo) GetLongAvgPrice() float64
- func (m *PositionInfo) GetMargin() float64
- func (m *PositionInfo) GetQueuingLongVolume() uint64
- func (m *PositionInfo) GetQueuingShortVolume() uint64
- func (m *PositionInfo) GetShortAvgPrice() float64
- func (m *PositionInfo) GetTickerName() string
- func (m *PositionInfo) GetValidLongVolume() uint64
- func (m *PositionInfo) GetValidShortVolume() uint64
- func (*PositionInfo) ProtoMessage()
- func (m *PositionInfo) Reset()
- func (m *PositionInfo) String() string
- type RecordHead
- type ReqAccount
- type ReqAlgoOrder
- type ReqCancelOrder
- type ReqKLine
- func (m *ReqKLine) GetEndTime() uint64
- func (m *ReqKLine) GetNum_Days() uint64
- func (m *ReqKLine) GetNum_Minutes() uint64
- func (m *ReqKLine) GetNum_Seconds() uint64
- func (m *ReqKLine) GetReq_Day() bool
- func (m *ReqKLine) GetReq_Minute() bool
- func (m *ReqKLine) GetReq_Second() bool
- func (m *ReqKLine) GetStartTime() uint64
- func (m *ReqKLine) GetTickerName() string
- func (m *ReqKLine) GetType() ConstDefine
- func (*ReqKLine) ProtoMessage()
- func (m *ReqKLine) Reset()
- func (m *ReqKLine) String() string
- type ReqOrdersInfo
- type ReqPosition
- type ReqSendOrder
- func (m *ReqSendOrder) GetAccount() string
- func (m *ReqSendOrder) GetDirect() OrderDirect
- func (m *ReqSendOrder) GetLastPrice() float64
- func (m *ReqSendOrder) GetOpenClose() OrderOpenClose
- func (m *ReqSendOrder) GetPrice() float64
- func (m *ReqSendOrder) GetTickerName() string
- func (m *ReqSendOrder) GetType() ConstDefine
- func (m *ReqSendOrder) GetVolume() uint64
- func (*ReqSendOrder) ProtoMessage()
- func (m *ReqSendOrder) Reset()
- func (m *ReqSendOrder) String() string
- type ReqTick
- type ReqTickerInfo
- type RspAccount
- func (m *RspAccount) GetAccount() string
- func (m *RspAccount) GetAvailable() float64
- func (m *RspAccount) GetMargin() float64
- func (m *RspAccount) GetOrders() []*OrderInfo
- func (m *RspAccount) GetPositions() []*PositionInfo
- func (m *RspAccount) GetType() ConstDefine
- func (*RspAccount) ProtoMessage()
- func (m *RspAccount) Reset()
- func (m *RspAccount) String() string
- type RspAlgoOrder
- type RspCancelOrder
- type RspKLine
- func (m *RspKLine) GetBar_Day() []*TOHLCV
- func (m *RspKLine) GetBar_Minute() []*TOHLCV
- func (m *RspKLine) GetBar_Second() []*TOHLCV
- func (m *RspKLine) GetEndTime() uint64
- func (m *RspKLine) GetNum_Days() uint64
- func (m *RspKLine) GetNum_Minutes() uint64
- func (m *RspKLine) GetNum_Seconds() uint64
- func (m *RspKLine) GetStartTime() uint64
- func (m *RspKLine) GetTickerName() string
- func (m *RspKLine) GetType() ConstDefine
- func (*RspKLine) ProtoMessage()
- func (m *RspKLine) Reset()
- func (m *RspKLine) String() string
- type RspOrdersInfo
- type RspPosition
- type RspSendOrder
- type RspTick
- type RspTickerInfo
- func (m *RspTickerInfo) GetMargin() float64
- func (m *RspTickerInfo) GetMinMove() float64
- func (m *RspTickerInfo) GetMultiplier() uint64
- func (m *RspTickerInfo) GetTickerName() string
- func (m *RspTickerInfo) GetTradingSession() []*TimeDuration
- func (m *RspTickerInfo) GetType() ConstDefine
- func (*RspTickerInfo) ProtoMessage()
- func (m *RspTickerInfo) Reset()
- func (m *RspTickerInfo) String() string
- type StaticMarketData
- func (m *StaticMarketData) GetClosePrice() float64
- func (m *StaticMarketData) GetHighestPrice() float64
- func (m *StaticMarketData) GetLowerLimitPrice() float64
- func (m *StaticMarketData) GetLowestPrice() float64
- func (m *StaticMarketData) GetOpenPrice() float64
- func (m *StaticMarketData) GetOrder() []*OrderInfo
- func (m *StaticMarketData) GetPosition() []*PositionInfo
- func (m *StaticMarketData) GetPreClosePrice() float64
- func (m *StaticMarketData) GetPreOpenInterest() uint64
- func (m *StaticMarketData) GetPreSettlementPrice() float64
- func (m *StaticMarketData) GetSettlementPrice() float64
- func (m *StaticMarketData) GetTickerName() string
- func (m *StaticMarketData) GetTime() uint64
- func (m *StaticMarketData) GetType() ConstDefine
- func (m *StaticMarketData) GetUpperLimitPrice() float64
- func (*StaticMarketData) ProtoMessage()
- func (m *StaticMarketData) Reset()
- func (m *StaticMarketData) String() string
- type TOHLCV
- func (m *TOHLCV) GetClosePrice() float64
- func (m *TOHLCV) GetEndTime() uint64
- func (m *TOHLCV) GetHighPrice() float64
- func (m *TOHLCV) GetLowPrice() float64
- func (m *TOHLCV) GetOpenInterest() uint64
- func (m *TOHLCV) GetOpenPrice() float64
- func (m *TOHLCV) GetSettlement() float64
- func (m *TOHLCV) GetStartTime() uint64
- func (m *TOHLCV) GetTotalVolume() uint64
- func (m *TOHLCV) GetTurnover() float64
- func (m *TOHLCV) GetVolume() uint64
- func (*TOHLCV) ProtoMessage()
- func (m *TOHLCV) Reset()
- func (m *TOHLCV) String() string
- type TimeDuration
Constants ¶
View Source
const ( HeadLen = uint64(unsafe.Sizeof(uint64(0))) MsgLen = uint32(unsafe.Sizeof(MessageHead{})) RecLen = uint32(unsafe.Sizeof(RecordHead{})) )
View Source
const Default_AlgoInfo_Force bool = false
View Source
const Default_AlgoInfo_LongVolume uint64 = 0
View Source
const Default_AlgoInfo_ShortVolume uint64 = 0
View Source
const Default_OrderInfo_IsForce bool = false
View Source
const Default_OrderInfo_IsToday bool = true
View Source
const Default_OrderInfo_LastFilled uint64 = 0
View Source
const Default_OrderInfo_LastMatchTime uint64 = 0
View Source
const Default_OrderInfo_Price float64 = 0
View Source
const Default_OrderInfo_Time uint64 = 0
View Source
const Default_OrderInfo_TotalFilled uint64 = 0
View Source
const Default_OrderInfo_Volume uint64 = 0
View Source
const Default_PositionInfo_ClosingLongVolume uint64 = 0
View Source
const Default_PositionInfo_ClosingShortVolume uint64 = 0
View Source
const Default_PositionInfo_Margin float64 = 0
View Source
const Default_PositionInfo_QueuingLongVolume uint64 = 0
View Source
const Default_PositionInfo_QueuingShortVolume uint64 = 0
View Source
const Default_PositionInfo_ValidLongVolume uint64 = 0
View Source
const Default_PositionInfo_ValidShortVolume uint64 = 0
View Source
const Default_ReqKLine_Num_Days uint64 = 1
View Source
const Default_ReqKLine_Num_Minutes uint64 = 1
View Source
const Default_ReqKLine_Num_Seconds uint64 = 1
View Source
const Default_ReqKLine_Req_Day bool = false
View Source
const Default_ReqKLine_Req_Minute bool = false
View Source
const Default_ReqKLine_Req_Second bool = false
View Source
const Default_RspKLine_Num_Days uint64 = 1
View Source
const Default_RspKLine_Num_Minutes uint64 = 1
View Source
const Default_RspKLine_Num_Seconds uint64 = 1
Variables ¶
View Source
var ConstDefine_name = map[int32]string{
1: "E_ReqSendOrder",
2: "E_RspSendOrder",
3: "E_ReqCancelOrder",
4: "E_RspCancelOrder",
5: "E_ReqOrdersInfo",
6: "E_RspOrdersInfo",
7: "E_ReqPosition",
8: "E_RspPosition",
9: "E_ReqAccount",
10: "E_RspAccount",
11: "E_ReqAlgoOrder",
12: "E_RspAlgoOrder",
13: "E_ReqTickerInfo",
14: "E_RspTickerInfo",
100: "E_DepthMarketData",
101: "E_StaticMarketData",
102: "E_ReqKLine",
103: "E_RspKLine",
104: "E_ReqTick",
105: "E_RspTick",
1000000: "E_HeartBeat",
}
View Source
var ConstDefine_value = map[string]int32{
"E_ReqSendOrder": 1,
"E_RspSendOrder": 2,
"E_ReqCancelOrder": 3,
"E_RspCancelOrder": 4,
"E_ReqOrdersInfo": 5,
"E_RspOrdersInfo": 6,
"E_ReqPosition": 7,
"E_RspPosition": 8,
"E_ReqAccount": 9,
"E_RspAccount": 10,
"E_ReqAlgoOrder": 11,
"E_RspAlgoOrder": 12,
"E_ReqTickerInfo": 13,
"E_RspTickerInfo": 14,
"E_DepthMarketData": 100,
"E_StaticMarketData": 101,
"E_ReqKLine": 102,
"E_RspKLine": 103,
"E_ReqTick": 104,
"E_RspTick": 105,
"E_HeartBeat": 1000000,
}
View Source
var OrderDirect_name = map[int32]string{
1: "OrderDirect_Buy",
2: "OrderDirect_Sell",
}
View Source
var OrderDirect_value = map[string]int32{
"OrderDirect_Buy": 1,
"OrderDirect_Sell": 2,
}
View Source
var OrderOpenClose_name = map[int32]string{
1: "OrderOpenClose_Open",
2: "OrderOpenClose_Close",
}
View Source
var OrderOpenClose_value = map[string]int32{
"OrderOpenClose_Open": 1,
"OrderOpenClose_Close": 2,
}
View Source
var OrderStatus_name = map[int32]string{
0: "OrderStatus_NIL",
1: "OrderStatus_New",
2: "OrderStatus_PartFill",
3: "OrderStatus_PartFillPartCancel",
4: "OrderStatus_Filled",
5: "OrderStatus_Rejected",
6: "OrderStatus_Canceling",
7: "OrderStatus_Canceled",
}
View Source
var OrderStatus_value = map[string]int32{
"OrderStatus_NIL": 0,
"OrderStatus_New": 1,
"OrderStatus_PartFill": 2,
"OrderStatus_PartFillPartCancel": 3,
"OrderStatus_Filled": 4,
"OrderStatus_Rejected": 5,
"OrderStatus_Canceling": 6,
"OrderStatus_Canceled": 7,
}
Functions ¶
Types ¶
type AlgoInfo ¶
type AlgoInfo struct { ValidTimes []*TimeDuration `protobuf:"bytes,1,rep" json:"ValidTimes,omitempty"` TickerName *string `protobuf:"bytes,2,opt" json:"TickerName,omitempty"` Account *string `protobuf:"bytes,3,opt" json:"Account,omitempty"` StrategyName *string `protobuf:"bytes,4,opt" json:"StrategyName,omitempty"` ExchangeName *string `protobuf:"bytes,5,opt" json:"ExchangeName,omitempty"` QuoteName *string `protobuf:"bytes,6,opt" json:"QuoteName,omitempty"` AlgoName *string `protobuf:"bytes,7,opt" json:"AlgoName,omitempty"` MaxLongPrice *float64 `protobuf:"fixed64,8,opt" json:"MaxLongPrice,omitempty"` MinShortPrice *float64 `protobuf:"fixed64,9,opt" json:"MinShortPrice,omitempty"` LongVolume *uint64 `protobuf:"varint,10,opt,def=0" json:"LongVolume,omitempty"` ShortVolume *uint64 `protobuf:"varint,11,opt,def=0" json:"ShortVolume,omitempty"` Force *bool `protobuf:"varint,12,opt,def=0" json:"Force,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*AlgoInfo) GetAccount ¶
func (*AlgoInfo) GetAlgoName ¶
func (*AlgoInfo) GetExchangeName ¶
func (*AlgoInfo) GetLongVolume ¶
func (*AlgoInfo) GetMaxLongPrice ¶
func (*AlgoInfo) GetMinShortPrice ¶
func (*AlgoInfo) GetQuoteName ¶
func (*AlgoInfo) GetShortVolume ¶
func (*AlgoInfo) GetStrategyName ¶
func (*AlgoInfo) GetTickerName ¶
func (*AlgoInfo) GetValidTimes ¶
func (m *AlgoInfo) GetValidTimes() []*TimeDuration
func (*AlgoInfo) ProtoMessage ¶
func (*AlgoInfo) ProtoMessage()
type ConstDefine ¶
type ConstDefine int32
const ( ConstDefine_E_ReqSendOrder ConstDefine = 1 ConstDefine_E_RspSendOrder ConstDefine = 2 ConstDefine_E_ReqCancelOrder ConstDefine = 3 ConstDefine_E_RspCancelOrder ConstDefine = 4 ConstDefine_E_ReqOrdersInfo ConstDefine = 5 ConstDefine_E_RspOrdersInfo ConstDefine = 6 ConstDefine_E_ReqPosition ConstDefine = 7 ConstDefine_E_RspPosition ConstDefine = 8 ConstDefine_E_ReqAccount ConstDefine = 9 ConstDefine_E_RspAccount ConstDefine = 10 ConstDefine_E_ReqAlgoOrder ConstDefine = 11 ConstDefine_E_RspAlgoOrder ConstDefine = 12 ConstDefine_E_ReqTickerInfo ConstDefine = 13 ConstDefine_E_RspTickerInfo ConstDefine = 14 ConstDefine_E_DepthMarketData ConstDefine = 100 ConstDefine_E_StaticMarketData ConstDefine = 101 ConstDefine_E_ReqKLine ConstDefine = 102 ConstDefine_E_RspKLine ConstDefine = 103 ConstDefine_E_ReqTick ConstDefine = 104 ConstDefine_E_RspTick ConstDefine = 105 ConstDefine_E_HeartBeat ConstDefine = 1000000 )
const Default_DepthMarketData_Type ConstDefine = ConstDefine_E_DepthMarketData
const Default_HeartBeat_Type ConstDefine = ConstDefine_E_HeartBeat
const Default_ReqAccount_Type ConstDefine = ConstDefine_E_ReqAccount
const Default_ReqAlgoOrder_Type ConstDefine = ConstDefine_E_ReqAlgoOrder
const Default_ReqCancelOrder_Type ConstDefine = ConstDefine_E_ReqCancelOrder
const Default_ReqKLine_Type ConstDefine = ConstDefine_E_ReqKLine
const Default_ReqOrdersInfo_Type ConstDefine = ConstDefine_E_ReqOrdersInfo
const Default_ReqPosition_Type ConstDefine = ConstDefine_E_ReqPosition
const Default_ReqSendOrder_Type ConstDefine = ConstDefine_E_ReqSendOrder
const Default_ReqTick_Type ConstDefine = ConstDefine_E_ReqTick
const Default_ReqTickerInfo_Type ConstDefine = ConstDefine_E_ReqTickerInfo
const Default_RspAccount_Type ConstDefine = ConstDefine_E_RspAccount
const Default_RspAlgoOrder_Type ConstDefine = ConstDefine_E_RspAlgoOrder
const Default_RspCancelOrder_Type ConstDefine = ConstDefine_E_RspCancelOrder
const Default_RspKLine_Type ConstDefine = ConstDefine_E_RspKLine
const Default_RspOrdersInfo_Type ConstDefine = ConstDefine_E_RspOrdersInfo
const Default_RspPosition_Type ConstDefine = ConstDefine_E_RspPosition
const Default_RspSendOrder_Type ConstDefine = ConstDefine_E_RspSendOrder
const Default_RspTick_Type ConstDefine = ConstDefine_E_RspTick
const Default_RspTickerInfo_Type ConstDefine = ConstDefine_E_RspTickerInfo
const Default_StaticMarketData_Type ConstDefine = ConstDefine_E_StaticMarketData
func (ConstDefine) Enum ¶
func (x ConstDefine) Enum() *ConstDefine
func (ConstDefine) String ¶
func (x ConstDefine) String() string
func (*ConstDefine) UnmarshalJSON ¶
func (x *ConstDefine) UnmarshalJSON(data []byte) error
type DepthMarketData ¶
type DepthMarketData struct { TickerName *string `protobuf:"bytes,1,opt" json:"TickerName,omitempty"` Time *uint64 `protobuf:"varint,2,opt" json:"Time,omitempty"` Volume *uint64 `protobuf:"varint,3,opt" json:"Volume,omitempty"` OpenInterest *uint64 `protobuf:"varint,4,opt" json:"OpenInterest,omitempty"` Turnover *float64 `protobuf:"fixed64,5,opt" json:"Turnover,omitempty"` LastPrice *float64 `protobuf:"fixed64,6,opt" json:"LastPrice,omitempty"` BuyPrice []float64 `protobuf:"fixed64,7,rep" json:"BuyPrice,omitempty"` SellPrice []float64 `protobuf:"fixed64,8,rep" json:"SellPrice,omitempty"` BuyVolume []uint64 `protobuf:"varint,9,rep" json:"BuyVolume,omitempty"` SellVolume []uint64 `protobuf:"varint,10,rep" json:"SellVolume,omitempty"` LocalTime *uint64 `protobuf:"varint,11,opt" json:"LocalTime,omitempty"` Position []*PositionInfo `protobuf:"bytes,12,rep" json:"Position,omitempty"` Order []*OrderInfo `protobuf:"bytes,13,rep" json:"Order,omitempty"` Settlement *float64 `protobuf:"fixed64,14,opt" json:"Settlement,omitempty"` Type *ConstDefine `protobuf:"varint,15,opt,enum=DataType.ConstDefine,def=100" json:"Type,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*DepthMarketData) GetBuyPrice ¶
func (m *DepthMarketData) GetBuyPrice() []float64
func (*DepthMarketData) GetBuyVolume ¶
func (m *DepthMarketData) GetBuyVolume() []uint64
func (*DepthMarketData) GetLastPrice ¶
func (m *DepthMarketData) GetLastPrice() float64
func (*DepthMarketData) GetLocalTime ¶
func (m *DepthMarketData) GetLocalTime() uint64
func (*DepthMarketData) GetOpenInterest ¶
func (m *DepthMarketData) GetOpenInterest() uint64
func (*DepthMarketData) GetOrder ¶
func (m *DepthMarketData) GetOrder() []*OrderInfo
func (*DepthMarketData) GetPosition ¶
func (m *DepthMarketData) GetPosition() []*PositionInfo
func (*DepthMarketData) GetSellPrice ¶
func (m *DepthMarketData) GetSellPrice() []float64
func (*DepthMarketData) GetSellVolume ¶
func (m *DepthMarketData) GetSellVolume() []uint64
func (*DepthMarketData) GetSettlement ¶
func (m *DepthMarketData) GetSettlement() float64
func (*DepthMarketData) GetTickerName ¶
func (m *DepthMarketData) GetTickerName() string
func (*DepthMarketData) GetTime ¶
func (m *DepthMarketData) GetTime() uint64
func (*DepthMarketData) GetTurnover ¶
func (m *DepthMarketData) GetTurnover() float64
func (*DepthMarketData) GetType ¶
func (m *DepthMarketData) GetType() ConstDefine
func (*DepthMarketData) GetVolume ¶
func (m *DepthMarketData) GetVolume() uint64
func (*DepthMarketData) ProtoMessage ¶
func (*DepthMarketData) ProtoMessage()
func (*DepthMarketData) Reset ¶
func (m *DepthMarketData) Reset()
func (*DepthMarketData) String ¶
func (m *DepthMarketData) String() string
type HeartBeat ¶
type HeartBeat struct { Type *ConstDefine `protobuf:"varint,1,opt,enum=DataType.ConstDefine,def=1000000" json:"Type,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*HeartBeat) GetType ¶
func (m *HeartBeat) GetType() ConstDefine
func (*HeartBeat) ProtoMessage ¶
func (*HeartBeat) ProtoMessage()
type MessageHead ¶
type OrderDirect ¶
type OrderDirect int32
const ( OrderDirect_OrderDirect_Buy OrderDirect = 1 OrderDirect_OrderDirect_Sell OrderDirect = 2 )
func (OrderDirect) Enum ¶
func (x OrderDirect) Enum() *OrderDirect
func (OrderDirect) String ¶
func (x OrderDirect) String() string
func (*OrderDirect) UnmarshalJSON ¶
func (x *OrderDirect) UnmarshalJSON(data []byte) error
type OrderInfo ¶
type OrderInfo struct { TickerName *string `protobuf:"bytes,1,opt" json:"TickerName,omitempty"` Account *string `protobuf:"bytes,2,opt" json:"Account,omitempty"` Time *uint64 `protobuf:"varint,3,opt,def=0" json:"Time,omitempty"` Volume *uint64 `protobuf:"varint,4,opt,def=0" json:"Volume,omitempty"` Price *float64 `protobuf:"fixed64,5,opt,def=0" json:"Price,omitempty"` LastFilled *uint64 `protobuf:"varint,6,opt,def=0" json:"LastFilled,omitempty"` TotalFilled *uint64 `protobuf:"varint,7,opt,def=0" json:"TotalFilled,omitempty"` Explain *string `protobuf:"bytes,8,opt" json:"Explain,omitempty"` Status *OrderStatus `protobuf:"varint,9,opt,enum=DataType.OrderStatus" json:"Status,omitempty"` Direct *OrderDirect `protobuf:"varint,10,opt,enum=DataType.OrderDirect" json:"Direct,omitempty"` OpenClose *OrderOpenClose `protobuf:"varint,11,opt,enum=DataType.OrderOpenClose" json:"OpenClose,omitempty"` OrderID *string `protobuf:"bytes,12,opt" json:"OrderID,omitempty"` IsForce *bool `protobuf:"varint,13,opt,def=0" json:"IsForce,omitempty"` IsToday *bool `protobuf:"varint,14,opt,def=1" json:"IsToday,omitempty"` LastMatchTime *uint64 `protobuf:"varint,15,opt,def=0" json:"LastMatchTime,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*OrderInfo) GetAccount ¶
func (*OrderInfo) GetDirect ¶
func (m *OrderInfo) GetDirect() OrderDirect
func (*OrderInfo) GetExplain ¶
func (*OrderInfo) GetIsForce ¶
func (*OrderInfo) GetIsToday ¶
func (*OrderInfo) GetLastFilled ¶
func (*OrderInfo) GetLastMatchTime ¶
func (*OrderInfo) GetOpenClose ¶
func (m *OrderInfo) GetOpenClose() OrderOpenClose
func (*OrderInfo) GetOrderID ¶
func (*OrderInfo) GetStatus ¶
func (m *OrderInfo) GetStatus() OrderStatus
func (*OrderInfo) GetTickerName ¶
func (*OrderInfo) GetTotalFilled ¶
func (*OrderInfo) ProtoMessage ¶
func (*OrderInfo) ProtoMessage()
type OrderOpenClose ¶
type OrderOpenClose int32
const ( OrderOpenClose_OrderOpenClose_Open OrderOpenClose = 1 OrderOpenClose_OrderOpenClose_Close OrderOpenClose = 2 )
func (OrderOpenClose) Enum ¶
func (x OrderOpenClose) Enum() *OrderOpenClose
func (OrderOpenClose) String ¶
func (x OrderOpenClose) String() string
func (*OrderOpenClose) UnmarshalJSON ¶
func (x *OrderOpenClose) UnmarshalJSON(data []byte) error
type OrderStatus ¶
type OrderStatus int32
const ( OrderStatus_OrderStatus_NIL OrderStatus = 0 OrderStatus_OrderStatus_New OrderStatus = 1 OrderStatus_OrderStatus_PartFill OrderStatus = 2 OrderStatus_OrderStatus_PartFillPartCancel OrderStatus = 3 OrderStatus_OrderStatus_Filled OrderStatus = 4 OrderStatus_OrderStatus_Rejected OrderStatus = 5 OrderStatus_OrderStatus_Canceling OrderStatus = 6 OrderStatus_OrderStatus_Canceled OrderStatus = 7 )
func (OrderStatus) Enum ¶
func (x OrderStatus) Enum() *OrderStatus
func (OrderStatus) String ¶
func (x OrderStatus) String() string
func (*OrderStatus) UnmarshalJSON ¶
func (x *OrderStatus) UnmarshalJSON(data []byte) error
type PositionInfo ¶
type PositionInfo struct { TickerName *string `protobuf:"bytes,1,opt" json:"TickerName,omitempty"` Account *string `protobuf:"bytes,2,opt" json:"Account,omitempty"` LongAvgPrice *float64 `protobuf:"fixed64,3,opt" json:"LongAvgPrice,omitempty"` ShortAvgPrice *float64 `protobuf:"fixed64,4,opt" json:"ShortAvgPrice,omitempty"` ValidLongVolume *uint64 `protobuf:"varint,5,opt,def=0" json:"ValidLongVolume,omitempty"` ClosingLongVolume *uint64 `protobuf:"varint,6,opt,def=0" json:"ClosingLongVolume,omitempty"` QueuingLongVolume *uint64 `protobuf:"varint,7,opt,def=0" json:"QueuingLongVolume,omitempty"` ValidShortVolume *uint64 `protobuf:"varint,8,opt,def=0" json:"ValidShortVolume,omitempty"` ClosingShortVolume *uint64 `protobuf:"varint,9,opt,def=0" json:"ClosingShortVolume,omitempty"` QueuingShortVolume *uint64 `protobuf:"varint,10,opt,def=0" json:"QueuingShortVolume,omitempty"` Margin *float64 `protobuf:"fixed64,11,opt,def=0" json:"Margin,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*PositionInfo) GetAccount ¶
func (m *PositionInfo) GetAccount() string
func (*PositionInfo) GetClosingLongVolume ¶
func (m *PositionInfo) GetClosingLongVolume() uint64
func (*PositionInfo) GetClosingShortVolume ¶
func (m *PositionInfo) GetClosingShortVolume() uint64
func (*PositionInfo) GetLongAvgPrice ¶
func (m *PositionInfo) GetLongAvgPrice() float64
func (*PositionInfo) GetMargin ¶
func (m *PositionInfo) GetMargin() float64
func (*PositionInfo) GetQueuingLongVolume ¶
func (m *PositionInfo) GetQueuingLongVolume() uint64
func (*PositionInfo) GetQueuingShortVolume ¶
func (m *PositionInfo) GetQueuingShortVolume() uint64
func (*PositionInfo) GetShortAvgPrice ¶
func (m *PositionInfo) GetShortAvgPrice() float64
func (*PositionInfo) GetTickerName ¶
func (m *PositionInfo) GetTickerName() string
func (*PositionInfo) GetValidLongVolume ¶
func (m *PositionInfo) GetValidLongVolume() uint64
func (*PositionInfo) GetValidShortVolume ¶
func (m *PositionInfo) GetValidShortVolume() uint64
func (*PositionInfo) ProtoMessage ¶
func (*PositionInfo) ProtoMessage()
func (*PositionInfo) Reset ¶
func (m *PositionInfo) Reset()
func (*PositionInfo) String ¶
func (m *PositionInfo) String() string
type RecordHead ¶
type ReqAccount ¶
type ReqAccount struct { Account *string `protobuf:"bytes,1,opt" json:"Account,omitempty"` Type *ConstDefine `protobuf:"varint,2,opt,enum=DataType.ConstDefine,def=9" json:"Type,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*ReqAccount) GetAccount ¶
func (m *ReqAccount) GetAccount() string
func (*ReqAccount) GetType ¶
func (m *ReqAccount) GetType() ConstDefine
func (*ReqAccount) ProtoMessage ¶
func (*ReqAccount) ProtoMessage()
func (*ReqAccount) Reset ¶
func (m *ReqAccount) Reset()
func (*ReqAccount) String ¶
func (m *ReqAccount) String() string
type ReqAlgoOrder ¶
type ReqAlgoOrder struct { Algo *AlgoInfo `protobuf:"bytes,1,opt" json:"Algo,omitempty"` Type *ConstDefine `protobuf:"varint,2,opt,enum=DataType.ConstDefine,def=11" json:"Type,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*ReqAlgoOrder) GetAlgo ¶
func (m *ReqAlgoOrder) GetAlgo() *AlgoInfo
func (*ReqAlgoOrder) GetType ¶
func (m *ReqAlgoOrder) GetType() ConstDefine
func (*ReqAlgoOrder) ProtoMessage ¶
func (*ReqAlgoOrder) ProtoMessage()
func (*ReqAlgoOrder) Reset ¶
func (m *ReqAlgoOrder) Reset()
func (*ReqAlgoOrder) String ¶
func (m *ReqAlgoOrder) String() string
type ReqCancelOrder ¶
type ReqCancelOrder struct { TickerName *string `protobuf:"bytes,1,opt" json:"TickerName,omitempty"` Account *string `protobuf:"bytes,2,opt" json:"Account,omitempty"` OrderID *string `protobuf:"bytes,3,opt" json:"OrderID,omitempty"` Type *ConstDefine `protobuf:"varint,4,opt,enum=DataType.ConstDefine,def=3" json:"Type,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*ReqCancelOrder) GetAccount ¶
func (m *ReqCancelOrder) GetAccount() string
func (*ReqCancelOrder) GetOrderID ¶
func (m *ReqCancelOrder) GetOrderID() string
func (*ReqCancelOrder) GetTickerName ¶
func (m *ReqCancelOrder) GetTickerName() string
func (*ReqCancelOrder) GetType ¶
func (m *ReqCancelOrder) GetType() ConstDefine
func (*ReqCancelOrder) ProtoMessage ¶
func (*ReqCancelOrder) ProtoMessage()
func (*ReqCancelOrder) Reset ¶
func (m *ReqCancelOrder) Reset()
func (*ReqCancelOrder) String ¶
func (m *ReqCancelOrder) String() string
type ReqKLine ¶
type ReqKLine struct { TickerName *string `protobuf:"bytes,1,opt" json:"TickerName,omitempty"` StartTime *uint64 `protobuf:"varint,2,opt" json:"StartTime,omitempty"` EndTime *uint64 `protobuf:"varint,3,opt" json:"EndTime,omitempty"` Req_Minute *bool `protobuf:"varint,4,opt,name=req_Minute,def=0" json:"req_Minute,omitempty"` Req_Day *bool `protobuf:"varint,5,opt,name=req_Day,def=0" json:"req_Day,omitempty"` Req_Second *bool `protobuf:"varint,6,opt,name=req_Second,def=0" json:"req_Second,omitempty"` Num_Seconds *uint64 `protobuf:"varint,7,opt,name=num_Seconds,def=1" json:"num_Seconds,omitempty"` Num_Minutes *uint64 `protobuf:"varint,8,opt,name=num_Minutes,def=1" json:"num_Minutes,omitempty"` Num_Days *uint64 `protobuf:"varint,9,opt,name=num_Days,def=1" json:"num_Days,omitempty"` Type *ConstDefine `protobuf:"varint,10,opt,enum=DataType.ConstDefine,def=102" json:"Type,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*ReqKLine) GetEndTime ¶
func (*ReqKLine) GetNum_Days ¶
func (*ReqKLine) GetNum_Minutes ¶
func (*ReqKLine) GetNum_Seconds ¶
func (*ReqKLine) GetReq_Day ¶
func (*ReqKLine) GetReq_Minute ¶
func (*ReqKLine) GetReq_Second ¶
func (*ReqKLine) GetStartTime ¶
func (*ReqKLine) GetTickerName ¶
func (*ReqKLine) GetType ¶
func (m *ReqKLine) GetType() ConstDefine
func (*ReqKLine) ProtoMessage ¶
func (*ReqKLine) ProtoMessage()
type ReqOrdersInfo ¶
type ReqOrdersInfo struct { TickerName *string `protobuf:"bytes,1,opt" json:"TickerName,omitempty"` Account *string `protobuf:"bytes,2,opt" json:"Account,omitempty"` ReqStatus *OrderStatus `protobuf:"varint,3,opt,enum=DataType.OrderStatus" json:"ReqStatus,omitempty"` Type *ConstDefine `protobuf:"varint,4,opt,enum=DataType.ConstDefine,def=5" json:"Type,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*ReqOrdersInfo) GetAccount ¶
func (m *ReqOrdersInfo) GetAccount() string
func (*ReqOrdersInfo) GetReqStatus ¶
func (m *ReqOrdersInfo) GetReqStatus() OrderStatus
func (*ReqOrdersInfo) GetTickerName ¶
func (m *ReqOrdersInfo) GetTickerName() string
func (*ReqOrdersInfo) GetType ¶
func (m *ReqOrdersInfo) GetType() ConstDefine
func (*ReqOrdersInfo) ProtoMessage ¶
func (*ReqOrdersInfo) ProtoMessage()
func (*ReqOrdersInfo) Reset ¶
func (m *ReqOrdersInfo) Reset()
func (*ReqOrdersInfo) String ¶
func (m *ReqOrdersInfo) String() string
type ReqPosition ¶
type ReqPosition struct { TickerName *string `protobuf:"bytes,1,opt" json:"TickerName,omitempty"` Account *string `protobuf:"bytes,2,opt" json:"Account,omitempty"` Type *ConstDefine `protobuf:"varint,3,opt,enum=DataType.ConstDefine,def=7" json:"Type,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*ReqPosition) GetAccount ¶
func (m *ReqPosition) GetAccount() string
func (*ReqPosition) GetTickerName ¶
func (m *ReqPosition) GetTickerName() string
func (*ReqPosition) GetType ¶
func (m *ReqPosition) GetType() ConstDefine
func (*ReqPosition) ProtoMessage ¶
func (*ReqPosition) ProtoMessage()
func (*ReqPosition) Reset ¶
func (m *ReqPosition) Reset()
func (*ReqPosition) String ¶
func (m *ReqPosition) String() string
type ReqSendOrder ¶
type ReqSendOrder struct { TickerName *string `protobuf:"bytes,1,opt" json:"TickerName,omitempty"` Account *string `protobuf:"bytes,2,opt" json:"Account,omitempty"` Direct *OrderDirect `protobuf:"varint,3,opt,enum=DataType.OrderDirect" json:"Direct,omitempty"` OpenClose *OrderOpenClose `protobuf:"varint,4,opt,enum=DataType.OrderOpenClose" json:"OpenClose,omitempty"` Volume *uint64 `protobuf:"varint,5,opt" json:"Volume,omitempty"` Price *float64 `protobuf:"fixed64,6,opt" json:"Price,omitempty"` LastPrice *float64 `protobuf:"fixed64,7,opt" json:"LastPrice,omitempty"` Type *ConstDefine `protobuf:"varint,8,opt,enum=DataType.ConstDefine,def=1" json:"Type,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*ReqSendOrder) GetAccount ¶
func (m *ReqSendOrder) GetAccount() string
func (*ReqSendOrder) GetDirect ¶
func (m *ReqSendOrder) GetDirect() OrderDirect
func (*ReqSendOrder) GetLastPrice ¶
func (m *ReqSendOrder) GetLastPrice() float64
func (*ReqSendOrder) GetOpenClose ¶
func (m *ReqSendOrder) GetOpenClose() OrderOpenClose
func (*ReqSendOrder) GetPrice ¶
func (m *ReqSendOrder) GetPrice() float64
func (*ReqSendOrder) GetTickerName ¶
func (m *ReqSendOrder) GetTickerName() string
func (*ReqSendOrder) GetType ¶
func (m *ReqSendOrder) GetType() ConstDefine
func (*ReqSendOrder) GetVolume ¶
func (m *ReqSendOrder) GetVolume() uint64
func (*ReqSendOrder) ProtoMessage ¶
func (*ReqSendOrder) ProtoMessage()
func (*ReqSendOrder) Reset ¶
func (m *ReqSendOrder) Reset()
func (*ReqSendOrder) String ¶
func (m *ReqSendOrder) String() string
type ReqTick ¶
type ReqTick struct { TickerName *string `protobuf:"bytes,1,opt" json:"TickerName,omitempty"` StartTime *uint64 `protobuf:"varint,2,opt" json:"StartTime,omitempty"` EndTime *uint64 `protobuf:"varint,3,opt" json:"EndTime,omitempty"` Type *ConstDefine `protobuf:"varint,4,opt,enum=DataType.ConstDefine,def=104" json:"Type,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*ReqTick) GetEndTime ¶
func (*ReqTick) GetStartTime ¶
func (*ReqTick) GetTickerName ¶
func (*ReqTick) GetType ¶
func (m *ReqTick) GetType() ConstDefine
func (*ReqTick) ProtoMessage ¶
func (*ReqTick) ProtoMessage()
type ReqTickerInfo ¶
type ReqTickerInfo struct { TickerName *string `protobuf:"bytes,1,opt" json:"TickerName,omitempty"` Type *ConstDefine `protobuf:"varint,2,opt,enum=DataType.ConstDefine,def=13" json:"Type,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*ReqTickerInfo) GetTickerName ¶
func (m *ReqTickerInfo) GetTickerName() string
func (*ReqTickerInfo) GetType ¶
func (m *ReqTickerInfo) GetType() ConstDefine
func (*ReqTickerInfo) ProtoMessage ¶
func (*ReqTickerInfo) ProtoMessage()
func (*ReqTickerInfo) Reset ¶
func (m *ReqTickerInfo) Reset()
func (*ReqTickerInfo) String ¶
func (m *ReqTickerInfo) String() string
type RspAccount ¶
type RspAccount struct { Account *string `protobuf:"bytes,1,opt" json:"Account,omitempty"` Available *float64 `protobuf:"fixed64,2,opt" json:"Available,omitempty"` Margin *float64 `protobuf:"fixed64,3,opt" json:"Margin,omitempty"` Positions []*PositionInfo `protobuf:"bytes,4,rep" json:"Positions,omitempty"` Orders []*OrderInfo `protobuf:"bytes,5,rep" json:"Orders,omitempty"` Type *ConstDefine `protobuf:"varint,6,opt,enum=DataType.ConstDefine,def=10" json:"Type,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*RspAccount) GetAccount ¶
func (m *RspAccount) GetAccount() string
func (*RspAccount) GetAvailable ¶
func (m *RspAccount) GetAvailable() float64
func (*RspAccount) GetMargin ¶
func (m *RspAccount) GetMargin() float64
func (*RspAccount) GetOrders ¶
func (m *RspAccount) GetOrders() []*OrderInfo
func (*RspAccount) GetPositions ¶
func (m *RspAccount) GetPositions() []*PositionInfo
func (*RspAccount) GetType ¶
func (m *RspAccount) GetType() ConstDefine
func (*RspAccount) ProtoMessage ¶
func (*RspAccount) ProtoMessage()
func (*RspAccount) Reset ¶
func (m *RspAccount) Reset()
func (*RspAccount) String ¶
func (m *RspAccount) String() string
type RspAlgoOrder ¶
type RspAlgoOrder struct { Algo *AlgoInfo `protobuf:"bytes,1,opt" json:"Algo,omitempty"` Type *ConstDefine `protobuf:"varint,2,opt,enum=DataType.ConstDefine,def=12" json:"Type,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*RspAlgoOrder) GetAlgo ¶
func (m *RspAlgoOrder) GetAlgo() *AlgoInfo
func (*RspAlgoOrder) GetType ¶
func (m *RspAlgoOrder) GetType() ConstDefine
func (*RspAlgoOrder) ProtoMessage ¶
func (*RspAlgoOrder) ProtoMessage()
func (*RspAlgoOrder) Reset ¶
func (m *RspAlgoOrder) Reset()
func (*RspAlgoOrder) String ¶
func (m *RspAlgoOrder) String() string
type RspCancelOrder ¶
type RspCancelOrder struct { LastReport *OrderInfo `protobuf:"bytes,1,opt" json:"LastReport,omitempty"` Type *ConstDefine `protobuf:"varint,2,opt,enum=DataType.ConstDefine,def=4" json:"Type,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*RspCancelOrder) GetLastReport ¶
func (m *RspCancelOrder) GetLastReport() *OrderInfo
func (*RspCancelOrder) GetType ¶
func (m *RspCancelOrder) GetType() ConstDefine
func (*RspCancelOrder) ProtoMessage ¶
func (*RspCancelOrder) ProtoMessage()
func (*RspCancelOrder) Reset ¶
func (m *RspCancelOrder) Reset()
func (*RspCancelOrder) String ¶
func (m *RspCancelOrder) String() string
type RspKLine ¶
type RspKLine struct { TickerName *string `protobuf:"bytes,1,opt" json:"TickerName,omitempty"` StartTime *uint64 `protobuf:"varint,2,opt" json:"StartTime,omitempty"` EndTime *uint64 `protobuf:"varint,3,opt" json:"EndTime,omitempty"` Bar_Minute []*TOHLCV `protobuf:"bytes,4,rep" json:"Bar_Minute,omitempty"` Bar_Day []*TOHLCV `protobuf:"bytes,5,rep" json:"Bar_Day,omitempty"` Bar_Second []*TOHLCV `protobuf:"bytes,6,rep" json:"Bar_Second,omitempty"` Num_Seconds *uint64 `protobuf:"varint,7,opt,name=num_Seconds,def=1" json:"num_Seconds,omitempty"` Num_Minutes *uint64 `protobuf:"varint,8,opt,name=num_Minutes,def=1" json:"num_Minutes,omitempty"` Num_Days *uint64 `protobuf:"varint,9,opt,name=num_Days,def=1" json:"num_Days,omitempty"` Type *ConstDefine `protobuf:"varint,14,opt,enum=DataType.ConstDefine,def=103" json:"Type,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*RspKLine) GetBar_Day ¶
func (*RspKLine) GetBar_Minute ¶
func (*RspKLine) GetBar_Second ¶
func (*RspKLine) GetEndTime ¶
func (*RspKLine) GetNum_Days ¶
func (*RspKLine) GetNum_Minutes ¶
func (*RspKLine) GetNum_Seconds ¶
func (*RspKLine) GetStartTime ¶
func (*RspKLine) GetTickerName ¶
func (*RspKLine) GetType ¶
func (m *RspKLine) GetType() ConstDefine
func (*RspKLine) ProtoMessage ¶
func (*RspKLine) ProtoMessage()
type RspOrdersInfo ¶
type RspOrdersInfo struct { Order []*OrderInfo `protobuf:"bytes,1,rep" json:"Order,omitempty"` Type *ConstDefine `protobuf:"varint,2,opt,enum=DataType.ConstDefine,def=6" json:"Type,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*RspOrdersInfo) GetOrder ¶
func (m *RspOrdersInfo) GetOrder() []*OrderInfo
func (*RspOrdersInfo) GetType ¶
func (m *RspOrdersInfo) GetType() ConstDefine
func (*RspOrdersInfo) ProtoMessage ¶
func (*RspOrdersInfo) ProtoMessage()
func (*RspOrdersInfo) Reset ¶
func (m *RspOrdersInfo) Reset()
func (*RspOrdersInfo) String ¶
func (m *RspOrdersInfo) String() string
type RspPosition ¶
type RspPosition struct { Position []*PositionInfo `protobuf:"bytes,1,rep" json:"Position,omitempty"` Type *ConstDefine `protobuf:"varint,2,opt,enum=DataType.ConstDefine,def=8" json:"Type,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*RspPosition) GetPosition ¶
func (m *RspPosition) GetPosition() []*PositionInfo
func (*RspPosition) GetType ¶
func (m *RspPosition) GetType() ConstDefine
func (*RspPosition) ProtoMessage ¶
func (*RspPosition) ProtoMessage()
func (*RspPosition) Reset ¶
func (m *RspPosition) Reset()
func (*RspPosition) String ¶
func (m *RspPosition) String() string
type RspSendOrder ¶
type RspSendOrder struct { LastReport *OrderInfo `protobuf:"bytes,1,opt" json:"LastReport,omitempty"` Type *ConstDefine `protobuf:"varint,2,opt,enum=DataType.ConstDefine,def=2" json:"Type,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*RspSendOrder) GetLastReport ¶
func (m *RspSendOrder) GetLastReport() *OrderInfo
func (*RspSendOrder) GetType ¶
func (m *RspSendOrder) GetType() ConstDefine
func (*RspSendOrder) ProtoMessage ¶
func (*RspSendOrder) ProtoMessage()
func (*RspSendOrder) Reset ¶
func (m *RspSendOrder) Reset()
func (*RspSendOrder) String ¶
func (m *RspSendOrder) String() string
type RspTick ¶
type RspTick struct { TickerName *string `protobuf:"bytes,1,opt" json:"TickerName,omitempty"` StartTime *uint64 `protobuf:"varint,2,opt" json:"StartTime,omitempty"` EndTime *uint64 `protobuf:"varint,3,opt" json:"EndTime,omitempty"` Ticks []*DepthMarketData `protobuf:"bytes,4,rep" json:"Ticks,omitempty"` Type *ConstDefine `protobuf:"varint,5,opt,enum=DataType.ConstDefine,def=105" json:"Type,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*RspTick) GetEndTime ¶
func (*RspTick) GetStartTime ¶
func (*RspTick) GetTickerName ¶
func (*RspTick) GetTicks ¶
func (m *RspTick) GetTicks() []*DepthMarketData
func (*RspTick) GetType ¶
func (m *RspTick) GetType() ConstDefine
func (*RspTick) ProtoMessage ¶
func (*RspTick) ProtoMessage()
type RspTickerInfo ¶
type RspTickerInfo struct { TickerName *string `protobuf:"bytes,1,opt" json:"TickerName,omitempty"` Multiplier *uint64 `protobuf:"varint,2,opt" json:"Multiplier,omitempty"` MinMove *float64 `protobuf:"fixed64,3,opt" json:"MinMove,omitempty"` Margin *float64 `protobuf:"fixed64,4,opt" json:"Margin,omitempty"` TradingSession []*TimeDuration `protobuf:"bytes,5,rep" json:"TradingSession,omitempty"` Type *ConstDefine `protobuf:"varint,6,opt,enum=DataType.ConstDefine,def=14" json:"Type,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*RspTickerInfo) GetMargin ¶
func (m *RspTickerInfo) GetMargin() float64
func (*RspTickerInfo) GetMinMove ¶
func (m *RspTickerInfo) GetMinMove() float64
func (*RspTickerInfo) GetMultiplier ¶
func (m *RspTickerInfo) GetMultiplier() uint64
func (*RspTickerInfo) GetTickerName ¶
func (m *RspTickerInfo) GetTickerName() string
func (*RspTickerInfo) GetTradingSession ¶
func (m *RspTickerInfo) GetTradingSession() []*TimeDuration
func (*RspTickerInfo) GetType ¶
func (m *RspTickerInfo) GetType() ConstDefine
func (*RspTickerInfo) ProtoMessage ¶
func (*RspTickerInfo) ProtoMessage()
func (*RspTickerInfo) Reset ¶
func (m *RspTickerInfo) Reset()
func (*RspTickerInfo) String ¶
func (m *RspTickerInfo) String() string
type StaticMarketData ¶
type StaticMarketData struct { TickerName *string `protobuf:"bytes,1,opt" json:"TickerName,omitempty"` Time *uint64 `protobuf:"varint,2,opt" json:"Time,omitempty"` PreOpenInterest *uint64 `protobuf:"varint,3,opt" json:"PreOpenInterest,omitempty"` PreSettlementPrice *float64 `protobuf:"fixed64,4,opt" json:"PreSettlementPrice,omitempty"` PreClosePrice *float64 `protobuf:"fixed64,5,opt" json:"PreClosePrice,omitempty"` OpenPrice *float64 `protobuf:"fixed64,6,opt" json:"OpenPrice,omitempty"` HighestPrice *float64 `protobuf:"fixed64,7,opt" json:"HighestPrice,omitempty"` LowestPrice *float64 `protobuf:"fixed64,8,opt" json:"LowestPrice,omitempty"` ClosePrice *float64 `protobuf:"fixed64,9,opt" json:"ClosePrice,omitempty"` UpperLimitPrice *float64 `protobuf:"fixed64,10,opt" json:"UpperLimitPrice,omitempty"` LowerLimitPrice *float64 `protobuf:"fixed64,11,opt" json:"LowerLimitPrice,omitempty"` SettlementPrice *float64 `protobuf:"fixed64,12,opt" json:"SettlementPrice,omitempty"` Position []*PositionInfo `protobuf:"bytes,13,rep" json:"Position,omitempty"` Order []*OrderInfo `protobuf:"bytes,14,rep" json:"Order,omitempty"` Type *ConstDefine `protobuf:"varint,15,opt,enum=DataType.ConstDefine,def=101" json:"Type,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*StaticMarketData) GetClosePrice ¶
func (m *StaticMarketData) GetClosePrice() float64
func (*StaticMarketData) GetHighestPrice ¶
func (m *StaticMarketData) GetHighestPrice() float64
func (*StaticMarketData) GetLowerLimitPrice ¶
func (m *StaticMarketData) GetLowerLimitPrice() float64
func (*StaticMarketData) GetLowestPrice ¶
func (m *StaticMarketData) GetLowestPrice() float64
func (*StaticMarketData) GetOpenPrice ¶
func (m *StaticMarketData) GetOpenPrice() float64
func (*StaticMarketData) GetOrder ¶
func (m *StaticMarketData) GetOrder() []*OrderInfo
func (*StaticMarketData) GetPosition ¶
func (m *StaticMarketData) GetPosition() []*PositionInfo
func (*StaticMarketData) GetPreClosePrice ¶
func (m *StaticMarketData) GetPreClosePrice() float64
func (*StaticMarketData) GetPreOpenInterest ¶
func (m *StaticMarketData) GetPreOpenInterest() uint64
func (*StaticMarketData) GetPreSettlementPrice ¶
func (m *StaticMarketData) GetPreSettlementPrice() float64
func (*StaticMarketData) GetSettlementPrice ¶
func (m *StaticMarketData) GetSettlementPrice() float64
func (*StaticMarketData) GetTickerName ¶
func (m *StaticMarketData) GetTickerName() string
func (*StaticMarketData) GetTime ¶
func (m *StaticMarketData) GetTime() uint64
func (*StaticMarketData) GetType ¶
func (m *StaticMarketData) GetType() ConstDefine
func (*StaticMarketData) GetUpperLimitPrice ¶
func (m *StaticMarketData) GetUpperLimitPrice() float64
func (*StaticMarketData) ProtoMessage ¶
func (*StaticMarketData) ProtoMessage()
func (*StaticMarketData) Reset ¶
func (m *StaticMarketData) Reset()
func (*StaticMarketData) String ¶
func (m *StaticMarketData) String() string
type TOHLCV ¶
type TOHLCV struct { StartTime *uint64 `protobuf:"varint,1,opt" json:"StartTime,omitempty"` EndTime *uint64 `protobuf:"varint,2,opt" json:"EndTime,omitempty"` OpenPrice *float64 `protobuf:"fixed64,3,opt" json:"OpenPrice,omitempty"` HighPrice *float64 `protobuf:"fixed64,4,opt" json:"HighPrice,omitempty"` LowPrice *float64 `protobuf:"fixed64,5,opt" json:"LowPrice,omitempty"` ClosePrice *float64 `protobuf:"fixed64,6,opt" json:"ClosePrice,omitempty"` Volume *uint64 `protobuf:"varint,7,opt" json:"Volume,omitempty"` TotalVolume *uint64 `protobuf:"varint,8,opt" json:"TotalVolume,omitempty"` OpenInterest *uint64 `protobuf:"varint,9,opt" json:"OpenInterest,omitempty"` Turnover *float64 `protobuf:"fixed64,10,opt" json:"Turnover,omitempty"` Settlement *float64 `protobuf:"fixed64,11,opt" json:"Settlement,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*TOHLCV) GetClosePrice ¶
func (*TOHLCV) GetEndTime ¶
func (*TOHLCV) GetHighPrice ¶
func (*TOHLCV) GetLowPrice ¶
func (*TOHLCV) GetOpenInterest ¶
func (*TOHLCV) GetOpenPrice ¶
func (*TOHLCV) GetSettlement ¶
func (*TOHLCV) GetStartTime ¶
func (*TOHLCV) GetTotalVolume ¶
func (*TOHLCV) GetTurnover ¶
func (*TOHLCV) ProtoMessage ¶
func (*TOHLCV) ProtoMessage()
type TimeDuration ¶
type TimeDuration struct { StartTime *uint64 `protobuf:"varint,1,opt" json:"StartTime,omitempty"` EndTime *uint64 `protobuf:"varint,2,opt" json:"EndTime,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*TimeDuration) GetEndTime ¶
func (m *TimeDuration) GetEndTime() uint64
func (*TimeDuration) GetStartTime ¶
func (m *TimeDuration) GetStartTime() uint64
func (*TimeDuration) ProtoMessage ¶
func (*TimeDuration) ProtoMessage()
func (*TimeDuration) Reset ¶
func (m *TimeDuration) Reset()
func (*TimeDuration) String ¶
func (m *TimeDuration) String() string
Click to show internal directories.
Click to hide internal directories.