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 added in v0.4.0

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

DontKnowTrade is the fix40 DontKnowTrade type, MsgType = Q

func FromMessage added in v0.4.0

func FromMessage(m *quickfix.Message) DontKnowTrade

FromMessage creates a DontKnowTrade from a quickfix.Message instance

func New added in v0.2.0

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 added in v0.4.0

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

GetDKReason gets DKReason, Tag 127

func (DontKnowTrade) GetExecID added in v0.4.0

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

GetExecID gets ExecID, Tag 17

func (DontKnowTrade) GetLastPx added in v0.4.0

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

GetLastPx gets LastPx, Tag 31

func (DontKnowTrade) GetLastShares added in v0.4.0

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

GetLastShares gets LastShares, Tag 32

func (DontKnowTrade) GetOrderID added in v0.4.0

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

GetOrderID gets OrderID, Tag 37

func (DontKnowTrade) GetOrderQty added in v0.4.0

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

GetOrderQty gets OrderQty, Tag 38

func (DontKnowTrade) GetSide added in v0.4.0

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

GetSide gets Side, Tag 54

func (DontKnowTrade) GetSymbol added in v0.4.0

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

GetSymbol gets Symbol, Tag 55

func (DontKnowTrade) GetText added in v0.4.0

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

GetText gets Text, Tag 58

func (DontKnowTrade) HasDKReason added in v0.4.0

func (m DontKnowTrade) HasDKReason() bool

HasDKReason returns true if DKReason is present, Tag 127

func (DontKnowTrade) HasExecID added in v0.4.0

func (m DontKnowTrade) HasExecID() bool

HasExecID returns true if ExecID is present, Tag 17

func (DontKnowTrade) HasLastPx added in v0.4.0

func (m DontKnowTrade) HasLastPx() bool

HasLastPx returns true if LastPx is present, Tag 31

func (DontKnowTrade) HasLastShares added in v0.4.0

func (m DontKnowTrade) HasLastShares() bool

HasLastShares returns true if LastShares is present, Tag 32

func (DontKnowTrade) HasOrderID added in v0.4.0

func (m DontKnowTrade) HasOrderID() bool

HasOrderID returns true if OrderID is present, Tag 37

func (DontKnowTrade) HasOrderQty added in v0.4.0

func (m DontKnowTrade) HasOrderQty() bool

HasOrderQty returns true if OrderQty is present, Tag 38

func (DontKnowTrade) HasSide added in v0.4.0

func (m DontKnowTrade) HasSide() bool

HasSide returns true if Side is present, Tag 54

func (DontKnowTrade) HasSymbol added in v0.4.0

func (m DontKnowTrade) HasSymbol() bool

HasSymbol returns true if Symbol is present, Tag 55

func (DontKnowTrade) HasText added in v0.4.0

func (m DontKnowTrade) HasText() bool

HasText returns true if Text is present, Tag 58

func (DontKnowTrade) SetDKReason added in v0.4.0

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

SetDKReason sets DKReason, Tag 127

func (DontKnowTrade) SetExecID added in v0.4.0

func (m DontKnowTrade) SetExecID(v string)

SetExecID sets ExecID, Tag 17

func (DontKnowTrade) SetLastPx added in v0.4.0

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

SetLastPx sets LastPx, Tag 31

func (DontKnowTrade) SetLastShares added in v0.4.0

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

SetLastShares sets LastShares, Tag 32

func (DontKnowTrade) SetOrderID added in v0.4.0

func (m DontKnowTrade) SetOrderID(v string)

SetOrderID sets OrderID, Tag 37

func (DontKnowTrade) SetOrderQty added in v0.4.0

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

SetOrderQty sets OrderQty, Tag 38

func (DontKnowTrade) SetSide added in v0.4.0

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

SetSide sets Side, Tag 54

func (DontKnowTrade) SetSymbol added in v0.4.0

func (m DontKnowTrade) SetSymbol(v string)

SetSymbol sets Symbol, Tag 55

func (DontKnowTrade) SetText added in v0.4.0

func (m DontKnowTrade) SetText(v string)

SetText sets Text, Tag 58

func (DontKnowTrade) ToMessage added in v0.4.0

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