dontknowtrade

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 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 {
	fix41.Header
	*quickfix.Body
	fix41.Trailer
	Message *quickfix.Message
}

DontKnowTrade is the fix41 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) (m DontKnowTrade)

New returns a DontKnowTrade initialized with the required fields for DontKnowTrade.

func (DontKnowTrade) GetCashOrderQty

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

GetCashOrderQty gets CashOrderQty, Tag 152.

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

func (m DontKnowTrade) GetIDSource() (v enum.IDSource, err quickfix.MessageRejectError)

GetIDSource gets IDSource, Tag 22.

func (DontKnowTrade) GetIssuer

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

GetIssuer gets Issuer, Tag 106.

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

func (m DontKnowTrade) GetMaturityDay() (v int, err quickfix.MessageRejectError)

GetMaturityDay gets MaturityDay, Tag 205.

func (DontKnowTrade) GetMaturityMonthYear

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

GetMaturityMonthYear gets MaturityMonthYear, Tag 200.

func (DontKnowTrade) GetOptAttribute

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

GetOptAttribute gets OptAttribute, Tag 206.

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

func (m DontKnowTrade) GetPutOrCall() (v enum.PutOrCall, err quickfix.MessageRejectError)

GetPutOrCall gets PutOrCall, Tag 201.

func (DontKnowTrade) GetSecurityDesc

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

GetSecurityDesc gets SecurityDesc, Tag 107.

func (DontKnowTrade) GetSecurityExchange

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

GetSecurityExchange gets SecurityExchange, Tag 207.

func (DontKnowTrade) GetSecurityID

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

GetSecurityID gets SecurityID, Tag 48.

func (DontKnowTrade) GetSecurityType

func (m DontKnowTrade) GetSecurityType() (v enum.SecurityType, err quickfix.MessageRejectError)

GetSecurityType gets SecurityType, Tag 167.

func (DontKnowTrade) GetSide

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

GetSide gets Side, Tag 54.

func (DontKnowTrade) GetStrikePrice

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

GetStrikePrice gets StrikePrice, Tag 202.

func (DontKnowTrade) GetSymbol

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

GetSymbol gets Symbol, Tag 55.

func (DontKnowTrade) GetSymbolSfx

func (m DontKnowTrade) GetSymbolSfx() (v enum.SymbolSfx, err quickfix.MessageRejectError)

GetSymbolSfx gets SymbolSfx, Tag 65.

func (DontKnowTrade) GetText

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

GetText gets Text, Tag 58.

func (DontKnowTrade) HasCashOrderQty

func (m DontKnowTrade) HasCashOrderQty() bool

HasCashOrderQty returns true if CashOrderQty is present, Tag 152.

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

func (m DontKnowTrade) HasIDSource() bool

HasIDSource returns true if IDSource is present, Tag 22.

func (DontKnowTrade) HasIssuer

func (m DontKnowTrade) HasIssuer() bool

HasIssuer returns true if Issuer is present, Tag 106.

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

func (m DontKnowTrade) HasMaturityDay() bool

HasMaturityDay returns true if MaturityDay is present, Tag 205.

func (DontKnowTrade) HasMaturityMonthYear

func (m DontKnowTrade) HasMaturityMonthYear() bool

HasMaturityMonthYear returns true if MaturityMonthYear is present, Tag 200.

func (DontKnowTrade) HasOptAttribute

func (m DontKnowTrade) HasOptAttribute() bool

HasOptAttribute returns true if OptAttribute is present, Tag 206.

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

func (m DontKnowTrade) HasPutOrCall() bool

HasPutOrCall returns true if PutOrCall is present, Tag 201.

func (DontKnowTrade) HasSecurityDesc

func (m DontKnowTrade) HasSecurityDesc() bool

HasSecurityDesc returns true if SecurityDesc is present, Tag 107.

func (DontKnowTrade) HasSecurityExchange

func (m DontKnowTrade) HasSecurityExchange() bool

HasSecurityExchange returns true if SecurityExchange is present, Tag 207.

func (DontKnowTrade) HasSecurityID

func (m DontKnowTrade) HasSecurityID() bool

HasSecurityID returns true if SecurityID is present, Tag 48.

func (DontKnowTrade) HasSecurityType

func (m DontKnowTrade) HasSecurityType() bool

HasSecurityType returns true if SecurityType is present, Tag 167.

func (DontKnowTrade) HasSide

func (m DontKnowTrade) HasSide() bool

HasSide returns true if Side is present, Tag 54.

func (DontKnowTrade) HasStrikePrice

func (m DontKnowTrade) HasStrikePrice() bool

HasStrikePrice returns true if StrikePrice is present, Tag 202.

func (DontKnowTrade) HasSymbol

func (m DontKnowTrade) HasSymbol() bool

HasSymbol returns true if Symbol is present, Tag 55.

func (DontKnowTrade) HasSymbolSfx

func (m DontKnowTrade) HasSymbolSfx() bool

HasSymbolSfx returns true if SymbolSfx is present, Tag 65.

func (DontKnowTrade) HasText

func (m DontKnowTrade) HasText() bool

HasText returns true if Text is present, Tag 58.

func (DontKnowTrade) SetCashOrderQty

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

SetCashOrderQty sets CashOrderQty, Tag 152.

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

func (m DontKnowTrade) SetIDSource(v enum.IDSource)

SetIDSource sets IDSource, Tag 22.

func (DontKnowTrade) SetIssuer

func (m DontKnowTrade) SetIssuer(v string)

SetIssuer sets Issuer, Tag 106.

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

func (m DontKnowTrade) SetMaturityDay(v int)

SetMaturityDay sets MaturityDay, Tag 205.

func (DontKnowTrade) SetMaturityMonthYear

func (m DontKnowTrade) SetMaturityMonthYear(v string)

SetMaturityMonthYear sets MaturityMonthYear, Tag 200.

func (DontKnowTrade) SetOptAttribute

func (m DontKnowTrade) SetOptAttribute(v string)

SetOptAttribute sets OptAttribute, Tag 206.

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

func (m DontKnowTrade) SetPutOrCall(v enum.PutOrCall)

SetPutOrCall sets PutOrCall, Tag 201.

func (DontKnowTrade) SetSecurityDesc

func (m DontKnowTrade) SetSecurityDesc(v string)

SetSecurityDesc sets SecurityDesc, Tag 107.

func (DontKnowTrade) SetSecurityExchange

func (m DontKnowTrade) SetSecurityExchange(v string)

SetSecurityExchange sets SecurityExchange, Tag 207.

func (DontKnowTrade) SetSecurityID

func (m DontKnowTrade) SetSecurityID(v string)

SetSecurityID sets SecurityID, Tag 48.

func (DontKnowTrade) SetSecurityType

func (m DontKnowTrade) SetSecurityType(v enum.SecurityType)

SetSecurityType sets SecurityType, Tag 167.

func (DontKnowTrade) SetSide

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

SetSide sets Side, Tag 54.

func (DontKnowTrade) SetStrikePrice

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

SetStrikePrice sets StrikePrice, Tag 202.

func (DontKnowTrade) SetSymbol

func (m DontKnowTrade) SetSymbol(v string)

SetSymbol sets Symbol, Tag 55.

func (DontKnowTrade) SetSymbolSfx

func (m DontKnowTrade) SetSymbolSfx(v enum.SymbolSfx)

SetSymbolSfx sets SymbolSfx, Tag 65.

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