quote

package
Version: 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: 7 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 Quote

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

Quote is the fix40 Quote type, MsgType = S

func FromMessage

func FromMessage(m *quickfix.Message) Quote

FromMessage creates a Quote from a quickfix.Message instance

func New

func New(quoteid field.QuoteIDField, symbol field.SymbolField, bidpx field.BidPxField) (m Quote)

New returns a Quote initialized with the required fields for Quote

func (Quote) GetBidPx

func (m Quote) GetBidPx() (v decimal.Decimal, err quickfix.MessageRejectError)

GetBidPx gets BidPx, Tag 132

func (Quote) GetBidSize

func (m Quote) GetBidSize() (v decimal.Decimal, err quickfix.MessageRejectError)

GetBidSize gets BidSize, Tag 134

func (Quote) GetIDSource

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

GetIDSource gets IDSource, Tag 22

func (Quote) GetIssuer

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

GetIssuer gets Issuer, Tag 106

func (Quote) GetOfferPx

func (m Quote) GetOfferPx() (v decimal.Decimal, err quickfix.MessageRejectError)

GetOfferPx gets OfferPx, Tag 133

func (Quote) GetOfferSize

func (m Quote) GetOfferSize() (v decimal.Decimal, err quickfix.MessageRejectError)

GetOfferSize gets OfferSize, Tag 135

func (Quote) GetQuoteID

func (m Quote) GetQuoteID() (v string, err quickfix.MessageRejectError)

GetQuoteID gets QuoteID, Tag 117

func (Quote) GetQuoteReqID

func (m Quote) GetQuoteReqID() (v string, err quickfix.MessageRejectError)

GetQuoteReqID gets QuoteReqID, Tag 131

func (Quote) GetSecurityDesc

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

GetSecurityDesc gets SecurityDesc, Tag 107

func (Quote) GetSecurityID

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

GetSecurityID gets SecurityID, Tag 48

func (Quote) GetSymbol

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

GetSymbol gets Symbol, Tag 55

func (Quote) GetSymbolSfx

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

GetSymbolSfx gets SymbolSfx, Tag 65

func (Quote) GetValidUntilTime

func (m Quote) GetValidUntilTime() (v time.Time, err quickfix.MessageRejectError)

GetValidUntilTime gets ValidUntilTime, Tag 62

func (Quote) HasBidPx

func (m Quote) HasBidPx() bool

HasBidPx returns true if BidPx is present, Tag 132

func (Quote) HasBidSize

func (m Quote) HasBidSize() bool

HasBidSize returns true if BidSize is present, Tag 134

func (Quote) HasIDSource

func (m Quote) HasIDSource() bool

HasIDSource returns true if IDSource is present, Tag 22

func (Quote) HasIssuer

func (m Quote) HasIssuer() bool

HasIssuer returns true if Issuer is present, Tag 106

func (Quote) HasOfferPx

func (m Quote) HasOfferPx() bool

HasOfferPx returns true if OfferPx is present, Tag 133

func (Quote) HasOfferSize

func (m Quote) HasOfferSize() bool

HasOfferSize returns true if OfferSize is present, Tag 135

func (Quote) HasQuoteID

func (m Quote) HasQuoteID() bool

HasQuoteID returns true if QuoteID is present, Tag 117

func (Quote) HasQuoteReqID

func (m Quote) HasQuoteReqID() bool

HasQuoteReqID returns true if QuoteReqID is present, Tag 131

func (Quote) HasSecurityDesc

func (m Quote) HasSecurityDesc() bool

HasSecurityDesc returns true if SecurityDesc is present, Tag 107

func (Quote) HasSecurityID

func (m Quote) HasSecurityID() bool

HasSecurityID returns true if SecurityID is present, Tag 48

func (Quote) HasSymbol

func (m Quote) HasSymbol() bool

HasSymbol returns true if Symbol is present, Tag 55

func (Quote) HasSymbolSfx

func (m Quote) HasSymbolSfx() bool

HasSymbolSfx returns true if SymbolSfx is present, Tag 65

func (Quote) HasValidUntilTime

func (m Quote) HasValidUntilTime() bool

HasValidUntilTime returns true if ValidUntilTime is present, Tag 62

func (Quote) SetBidPx

func (m Quote) SetBidPx(value decimal.Decimal, scale int32)

SetBidPx sets BidPx, Tag 132

func (Quote) SetBidSize

func (m Quote) SetBidSize(value decimal.Decimal, scale int32)

SetBidSize sets BidSize, Tag 134

func (Quote) SetIDSource

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

SetIDSource sets IDSource, Tag 22

func (Quote) SetIssuer

func (m Quote) SetIssuer(v string)

SetIssuer sets Issuer, Tag 106

func (Quote) SetOfferPx

func (m Quote) SetOfferPx(value decimal.Decimal, scale int32)

SetOfferPx sets OfferPx, Tag 133

func (Quote) SetOfferSize

func (m Quote) SetOfferSize(value decimal.Decimal, scale int32)

SetOfferSize sets OfferSize, Tag 135

func (Quote) SetQuoteID

func (m Quote) SetQuoteID(v string)

SetQuoteID sets QuoteID, Tag 117

func (Quote) SetQuoteReqID

func (m Quote) SetQuoteReqID(v string)

SetQuoteReqID sets QuoteReqID, Tag 131

func (Quote) SetSecurityDesc

func (m Quote) SetSecurityDesc(v string)

SetSecurityDesc sets SecurityDesc, Tag 107

func (Quote) SetSecurityID

func (m Quote) SetSecurityID(v string)

SetSecurityID sets SecurityID, Tag 48

func (Quote) SetSymbol

func (m Quote) SetSymbol(v string)

SetSymbol sets Symbol, Tag 55

func (Quote) SetSymbolSfx

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

SetSymbolSfx sets SymbolSfx, Tag 65

func (Quote) SetValidUntilTime

func (m Quote) SetValidUntilTime(v time.Time)

SetValidUntilTime sets ValidUntilTime, Tag 62

func (Quote) ToMessage

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

ToMessage returns a quickfix.Message instance

type RouteOut

type RouteOut func(msg Quote, 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
t or T : Toggle theme light dark auto
y or Y : Canonical URL