dontknowtrade

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2017 License: Apache-1.1 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Route

func Route(router RouteOut) (string, string, quickfix.MessageRoute)

Route returns the beginstring, message type, and MessageRoute for this Message type

Types

type DontKnowTrade

type DontKnowTrade struct {
	fix40.Header
	*quickfix.Body
	fix40.Trailer
	Message *quickfix.Message
}

DontKnowTrade is the fix40 DontKnowTrade type, MsgType = Q

func FromMessage

func FromMessage(m *quickfix.Message) DontKnowTrade

FromMessage creates a DontKnowTrade from a quickfix.Message instance

func New

func New(dkreason field.DKReasonField, symbol field.SymbolField, side field.SideField, orderqty field.OrderQtyField, lastshares field.LastSharesField, lastpx field.LastPxField) (m DontKnowTrade)

New returns a DontKnowTrade initialized with the required fields for DontKnowTrade

func (DontKnowTrade) GetDKReason

func (m DontKnowTrade) GetDKReason() (v enum.DKReason, err quickfix.MessageRejectError)

GetDKReason gets DKReason, Tag 127

func (DontKnowTrade) GetExecID

func (m DontKnowTrade) GetExecID() (v string, err quickfix.MessageRejectError)

GetExecID gets ExecID, Tag 17

func (DontKnowTrade) GetLastPx

func (m DontKnowTrade) GetLastPx() (v decimal.Decimal, err quickfix.MessageRejectError)

GetLastPx gets LastPx, Tag 31

func (DontKnowTrade) GetLastShares

func (m DontKnowTrade) GetLastShares() (v decimal.Decimal, err quickfix.MessageRejectError)

GetLastShares gets LastShares, Tag 32

func (DontKnowTrade) GetOrderID

func (m DontKnowTrade) GetOrderID() (v string, err quickfix.MessageRejectError)

GetOrderID gets OrderID, Tag 37

func (DontKnowTrade) GetOrderQty

func (m DontKnowTrade) GetOrderQty() (v decimal.Decimal, err quickfix.MessageRejectError)

GetOrderQty gets OrderQty, Tag 38

func (DontKnowTrade) GetSide

func (m DontKnowTrade) GetSide() (v enum.Side, err quickfix.MessageRejectError)

GetSide gets Side, Tag 54

func (DontKnowTrade) GetSymbol

func (m DontKnowTrade) GetSymbol() (v string, err quickfix.MessageRejectError)

GetSymbol gets Symbol, Tag 55

func (DontKnowTrade) GetText

func (m DontKnowTrade) GetText() (v string, err quickfix.MessageRejectError)

GetText gets Text, Tag 58

func (DontKnowTrade) HasDKReason

func (m DontKnowTrade) HasDKReason() bool

HasDKReason returns true if DKReason is present, Tag 127

func (DontKnowTrade) HasExecID

func (m DontKnowTrade) HasExecID() bool

HasExecID returns true if ExecID is present, Tag 17

func (DontKnowTrade) HasLastPx

func (m DontKnowTrade) HasLastPx() bool

HasLastPx returns true if LastPx is present, Tag 31

func (DontKnowTrade) HasLastShares

func (m DontKnowTrade) HasLastShares() bool

HasLastShares returns true if LastShares is present, Tag 32

func (DontKnowTrade) HasOrderID

func (m DontKnowTrade) HasOrderID() bool

HasOrderID returns true if OrderID is present, Tag 37

func (DontKnowTrade) HasOrderQty

func (m DontKnowTrade) HasOrderQty() bool

HasOrderQty returns true if OrderQty is present, Tag 38

func (DontKnowTrade) HasSide

func (m DontKnowTrade) HasSide() bool

HasSide returns true if Side is present, Tag 54

func (DontKnowTrade) HasSymbol

func (m DontKnowTrade) HasSymbol() bool

HasSymbol returns true if Symbol is present, Tag 55

func (DontKnowTrade) HasText

func (m DontKnowTrade) HasText() bool

HasText returns true if Text is present, Tag 58

func (DontKnowTrade) SetDKReason

func (m DontKnowTrade) SetDKReason(v enum.DKReason)

SetDKReason sets DKReason, Tag 127

func (DontKnowTrade) SetExecID

func (m DontKnowTrade) SetExecID(v string)

SetExecID sets ExecID, Tag 17

func (DontKnowTrade) SetLastPx

func (m DontKnowTrade) SetLastPx(value decimal.Decimal, scale int32)

SetLastPx sets LastPx, Tag 31

func (DontKnowTrade) SetLastShares

func (m DontKnowTrade) SetLastShares(value decimal.Decimal, scale int32)

SetLastShares sets LastShares, Tag 32

func (DontKnowTrade) SetOrderID

func (m DontKnowTrade) SetOrderID(v string)

SetOrderID sets OrderID, Tag 37

func (DontKnowTrade) SetOrderQty

func (m DontKnowTrade) SetOrderQty(value decimal.Decimal, scale int32)

SetOrderQty sets OrderQty, Tag 38

func (DontKnowTrade) SetSide

func (m DontKnowTrade) SetSide(v enum.Side)

SetSide sets Side, Tag 54

func (DontKnowTrade) SetSymbol

func (m DontKnowTrade) SetSymbol(v string)

SetSymbol sets Symbol, Tag 55

func (DontKnowTrade) SetText

func (m DontKnowTrade) SetText(v string)

SetText sets Text, Tag 58

func (DontKnowTrade) ToMessage

func (m DontKnowTrade) ToMessage() *quickfix.Message

ToMessage returns a quickfix.Message instance

type RouteOut

type RouteOut func(msg DontKnowTrade, sessionID quickfix.SessionID) quickfix.MessageRejectError

A RouteOut is the callback type that should be implemented for routing Message

Jump to

Keyboard shortcuts

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