DataType

package
v0.0.0-...-63922d5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2016 License: MIT Imports: 4 Imported by: 0

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

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

func Equ

func Equ(a, b float64) bool

func MakeID

func MakeID(name string) uint64

func Roll

func Roll(in float64) float64

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 (m *AlgoInfo) GetAccount() string

func (*AlgoInfo) GetAlgoName

func (m *AlgoInfo) GetAlgoName() string

func (*AlgoInfo) GetExchangeName

func (m *AlgoInfo) GetExchangeName() string

func (*AlgoInfo) GetForce

func (m *AlgoInfo) GetForce() bool

func (*AlgoInfo) GetLongVolume

func (m *AlgoInfo) GetLongVolume() uint64

func (*AlgoInfo) GetMaxLongPrice

func (m *AlgoInfo) GetMaxLongPrice() float64

func (*AlgoInfo) GetMinShortPrice

func (m *AlgoInfo) GetMinShortPrice() float64

func (*AlgoInfo) GetQuoteName

func (m *AlgoInfo) GetQuoteName() string

func (*AlgoInfo) GetShortVolume

func (m *AlgoInfo) GetShortVolume() uint64

func (*AlgoInfo) GetStrategyName

func (m *AlgoInfo) GetStrategyName() string

func (*AlgoInfo) GetTickerName

func (m *AlgoInfo) GetTickerName() string

func (*AlgoInfo) GetValidTimes

func (m *AlgoInfo) GetValidTimes() []*TimeDuration

func (*AlgoInfo) ProtoMessage

func (*AlgoInfo) ProtoMessage()

func (*AlgoInfo) Reset

func (m *AlgoInfo) Reset()

func (*AlgoInfo) String

func (m *AlgoInfo) String() string

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()

func (*HeartBeat) Reset

func (m *HeartBeat) Reset()

func (*HeartBeat) String

func (m *HeartBeat) String() string

type MessageHead

type MessageHead struct {
	Msglen   uint64
	Sender   uint64
	Recver   uint64
	Copyer   uint64
	SendTime uint64
	OutTime  uint64
}

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 (m *OrderInfo) GetAccount() string

func (*OrderInfo) GetDirect

func (m *OrderInfo) GetDirect() OrderDirect

func (*OrderInfo) GetExplain

func (m *OrderInfo) GetExplain() string

func (*OrderInfo) GetIsForce

func (m *OrderInfo) GetIsForce() bool

func (*OrderInfo) GetIsToday

func (m *OrderInfo) GetIsToday() bool

func (*OrderInfo) GetLastFilled

func (m *OrderInfo) GetLastFilled() uint64

func (*OrderInfo) GetLastMatchTime

func (m *OrderInfo) GetLastMatchTime() uint64

func (*OrderInfo) GetOpenClose

func (m *OrderInfo) GetOpenClose() OrderOpenClose

func (*OrderInfo) GetOrderID

func (m *OrderInfo) GetOrderID() string

func (*OrderInfo) GetPrice

func (m *OrderInfo) GetPrice() float64

func (*OrderInfo) GetStatus

func (m *OrderInfo) GetStatus() OrderStatus

func (*OrderInfo) GetTickerName

func (m *OrderInfo) GetTickerName() string

func (*OrderInfo) GetTime

func (m *OrderInfo) GetTime() uint64

func (*OrderInfo) GetTotalFilled

func (m *OrderInfo) GetTotalFilled() uint64

func (*OrderInfo) GetVolume

func (m *OrderInfo) GetVolume() uint64

func (*OrderInfo) ProtoMessage

func (*OrderInfo) ProtoMessage()

func (*OrderInfo) Reset

func (m *OrderInfo) Reset()

func (*OrderInfo) String

func (m *OrderInfo) String() string

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 RecordHead struct {
	HashCode uint64
	RecType  uint32
	Length   uint32
}

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 (m *ReqKLine) GetEndTime() uint64

func (*ReqKLine) GetNum_Days

func (m *ReqKLine) GetNum_Days() uint64

func (*ReqKLine) GetNum_Minutes

func (m *ReqKLine) GetNum_Minutes() uint64

func (*ReqKLine) GetNum_Seconds

func (m *ReqKLine) GetNum_Seconds() uint64

func (*ReqKLine) GetReq_Day

func (m *ReqKLine) GetReq_Day() bool

func (*ReqKLine) GetReq_Minute

func (m *ReqKLine) GetReq_Minute() bool

func (*ReqKLine) GetReq_Second

func (m *ReqKLine) GetReq_Second() bool

func (*ReqKLine) GetStartTime

func (m *ReqKLine) GetStartTime() uint64

func (*ReqKLine) GetTickerName

func (m *ReqKLine) GetTickerName() string

func (*ReqKLine) GetType

func (m *ReqKLine) GetType() ConstDefine

func (*ReqKLine) ProtoMessage

func (*ReqKLine) ProtoMessage()

func (*ReqKLine) Reset

func (m *ReqKLine) Reset()

func (*ReqKLine) String

func (m *ReqKLine) String() string

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 (m *ReqTick) GetEndTime() uint64

func (*ReqTick) GetStartTime

func (m *ReqTick) GetStartTime() uint64

func (*ReqTick) GetTickerName

func (m *ReqTick) GetTickerName() string

func (*ReqTick) GetType

func (m *ReqTick) GetType() ConstDefine

func (*ReqTick) ProtoMessage

func (*ReqTick) ProtoMessage()

func (*ReqTick) Reset

func (m *ReqTick) Reset()

func (*ReqTick) String

func (m *ReqTick) String() string

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 (m *RspKLine) GetBar_Day() []*TOHLCV

func (*RspKLine) GetBar_Minute

func (m *RspKLine) GetBar_Minute() []*TOHLCV

func (*RspKLine) GetBar_Second

func (m *RspKLine) GetBar_Second() []*TOHLCV

func (*RspKLine) GetEndTime

func (m *RspKLine) GetEndTime() uint64

func (*RspKLine) GetNum_Days

func (m *RspKLine) GetNum_Days() uint64

func (*RspKLine) GetNum_Minutes

func (m *RspKLine) GetNum_Minutes() uint64

func (*RspKLine) GetNum_Seconds

func (m *RspKLine) GetNum_Seconds() uint64

func (*RspKLine) GetStartTime

func (m *RspKLine) GetStartTime() uint64

func (*RspKLine) GetTickerName

func (m *RspKLine) GetTickerName() string

func (*RspKLine) GetType

func (m *RspKLine) GetType() ConstDefine

func (*RspKLine) ProtoMessage

func (*RspKLine) ProtoMessage()

func (*RspKLine) Reset

func (m *RspKLine) Reset()

func (*RspKLine) String

func (m *RspKLine) String() string

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 (m *RspTick) GetEndTime() uint64

func (*RspTick) GetStartTime

func (m *RspTick) GetStartTime() uint64

func (*RspTick) GetTickerName

func (m *RspTick) GetTickerName() string

func (*RspTick) GetTicks

func (m *RspTick) GetTicks() []*DepthMarketData

func (*RspTick) GetType

func (m *RspTick) GetType() ConstDefine

func (*RspTick) ProtoMessage

func (*RspTick) ProtoMessage()

func (*RspTick) Reset

func (m *RspTick) Reset()

func (*RspTick) String

func (m *RspTick) String() string

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 (m *TOHLCV) GetClosePrice() float64

func (*TOHLCV) GetEndTime

func (m *TOHLCV) GetEndTime() uint64

func (*TOHLCV) GetHighPrice

func (m *TOHLCV) GetHighPrice() float64

func (*TOHLCV) GetLowPrice

func (m *TOHLCV) GetLowPrice() float64

func (*TOHLCV) GetOpenInterest

func (m *TOHLCV) GetOpenInterest() uint64

func (*TOHLCV) GetOpenPrice

func (m *TOHLCV) GetOpenPrice() float64

func (*TOHLCV) GetSettlement

func (m *TOHLCV) GetSettlement() float64

func (*TOHLCV) GetStartTime

func (m *TOHLCV) GetStartTime() uint64

func (*TOHLCV) GetTotalVolume

func (m *TOHLCV) GetTotalVolume() uint64

func (*TOHLCV) GetTurnover

func (m *TOHLCV) GetTurnover() float64

func (*TOHLCV) GetVolume

func (m *TOHLCV) GetVolume() uint64

func (*TOHLCV) ProtoMessage

func (*TOHLCV) ProtoMessage()

func (*TOHLCV) Reset

func (m *TOHLCV) Reset()

func (*TOHLCV) String

func (m *TOHLCV) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL