Documentation ¶
Index ¶
- func Bytes2Float64(b []byte) float64
- func Bytes2String(b []byte) string
- func DecodeGenericField(pkt []byte) ([]byte, int16, error)
- func MIRPDecodeAndSink(data []byte, ds chan *sink.DataStream, ts time.Time, hpt *exats.HPT, ...)
- type CenterChangeField
- type IncrRequest
- type IncrResponse
- type InstrData
- type InstrPV
- type LoginRequest
- type LoginResponse
- type LogoutRequest
- type LogoutResponse
- type MDQPDecoder
- type MDQPField
- type MDQPHdr
- type MDQPMsg
- type MIRPField
- type MIRPInstrumentInfo
- type MIRPPriceChangeEvent
- type MIRPVolumeChangeEvent
- type MirpHdr
- type MirpMsg
- type SnapshotRequest
- type SnapshotResponse
- type SnapshotResponseHdr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bytes2Float64 ¶
func Bytes2String ¶
func MIRPDecodeAndSink ¶
Types ¶
type CenterChangeField ¶
func DecodeMDQPCenterChangeField ¶
func DecodeMDQPCenterChangeField(pkt []byte) *CenterChangeField
type IncrRequest ¶
func DecodeIncrRequest ¶
func DecodeIncrRequest(pkt []byte) (*IncrRequest, error)
type IncrResponse ¶
type IncrResponse struct {
Data []*MirpMsg
}
func DecodeIncrResponse ¶
func DecodeIncrResponse(pkt []byte) (*IncrResponse, error)
type InstrData ¶
type InstrData struct { InstrID string UnderlyingInstrID string ProductClass string StrikePrice float64 OptionsType string VolMul int32 UnderlyingMul float64 IsTrading int32 CurrencyID string PriceTick float64 CodecPrice float64 InstrNo int32 LastPrice float64 Volume int32 Turnover float64 OpenInterest float64 HighestPrice float64 LowestPrice float64 OpenPrice float64 ClosePrice float64 SettlementPrice float64 UpperLimitPrice float64 LowerLimitPrice float64 PreSettlementPrice float64 PreClosePrice float64 PreOpenInterest float64 PreDelta float64 CurrDelta float64 ActionDay string UpdateTime string UpdateMilliSec int32 ChangeNo int32 PV []*InstrPV }
type LoginRequest ¶
type LoginRequest struct { UserID string ParticipantID string Password string Language string UserProductInfo string InterfaceProductInfo string }
func DecodeLoginRequest ¶
func DecodeLoginRequest(pkt []byte) (*LoginRequest, error)
type LoginResponse ¶
type LoginResponse struct { ErrID int32 ErrMsg string TradingDay string LoginTime string UserID string ParticipantID string TradingSystemName string ActionDay string }
func DecodeLoginResponse ¶
func DecodeLoginResponse(pkt []byte) (*LoginResponse, error)
type LogoutRequest ¶
func DecodeLogoutRequest ¶
func DecodeLogoutRequest(pkt []byte) (*LogoutRequest, error)
type LogoutResponse ¶
func DecodeLogoutResponse ¶
func DecodeLogoutResponse(pkt []byte) (*LogoutResponse, error)
type MDQPDecoder ¶
type MDQPDecoder struct { StreamFactory *tcpStreamFactory Assembler *tcpassembly.Assembler // contains filtered or unexported fields }
func NewMDQPDecoder ¶
func NewMDQPDecoder(ch chan *sink.DataStream) *MDQPDecoder
type MDQPMsg ¶
func DecodeMDQP ¶
type MIRPField ¶
func DecodeMIRPField ¶
type MIRPInstrumentInfo ¶
func DecodeMIRPInstrumentInfo ¶
func DecodeMIRPInstrumentInfo(data []byte) *MIRPInstrumentInfo
type MIRPPriceChangeEvent ¶
type MIRPPriceChangeEvent struct { EventType string MDEntryType string PriceLevel int64 PriceOffset int64 Volume int64 }
func DecodeMIRPPriceChangeEvent ¶
func DecodeMIRPPriceChangeEvent(data []byte) *MIRPPriceChangeEvent
type MIRPVolumeChangeEvent ¶
type MIRPVolumeChangeEvent struct { LastPriceOffset int64 MIRPVolumeChange int64 TurnoverOffset int64 OpenInterestChange int64 }
func DecodeMIRPVolumeChangeEvent ¶
func DecodeMIRPVolumeChangeEvent(data []byte) *MIRPVolumeChangeEvent
type MirpMsg ¶
func DecodeMIRP ¶
type SnapshotRequest ¶
func DecodeSnapshotRequest ¶
func DecodeSnapshotRequest(pkt []byte) (*SnapshotRequest, error)
type SnapshotResponse ¶
type SnapshotResponse struct { CenterChange []*CenterChangeField Hdr *SnapshotResponseHdr InstrData map[int32]*InstrData }
func DecodeSnapshotResponse ¶
func DecodeSnapshotResponse(pkt []byte) (*SnapshotResponse, error)
func (*SnapshotResponse) DecodeMDQPField ¶
func (s *SnapshotResponse) DecodeMDQPField(pkt []byte) (int16, error)
type SnapshotResponseHdr ¶
Click to show internal directories.
Click to hide internal directories.