quote

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2016 License: Apache-1.1 Imports: 4 Imported by: 0

Documentation

Overview

Package quote msg type = S.

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 Message

type Message struct {
	FIXMsgType string `fix:"S"`
	fix40.Header
	//QuoteReqID is a non-required field for Quote.
	QuoteReqID *string `fix:"131"`
	//QuoteID is a required field for Quote.
	QuoteID string `fix:"117"`
	//Symbol is a required field for Quote.
	Symbol string `fix:"55"`
	//SymbolSfx is a non-required field for Quote.
	SymbolSfx *string `fix:"65"`
	//SecurityID is a non-required field for Quote.
	SecurityID *string `fix:"48"`
	//IDSource is a non-required field for Quote.
	IDSource *string `fix:"22"`
	//Issuer is a non-required field for Quote.
	Issuer *string `fix:"106"`
	//SecurityDesc is a non-required field for Quote.
	SecurityDesc *string `fix:"107"`
	//BidPx is a required field for Quote.
	BidPx float64 `fix:"132"`
	//OfferPx is a non-required field for Quote.
	OfferPx *float64 `fix:"133"`
	//BidSize is a non-required field for Quote.
	BidSize *int `fix:"134"`
	//OfferSize is a non-required field for Quote.
	OfferSize *int `fix:"135"`
	//ValidUntilTime is a non-required field for Quote.
	ValidUntilTime *time.Time `fix:"62"`
	fix40.Trailer
}

Message is a Quote FIX Message

func New added in v0.2.0

func New(quoteid string, symbol string, bidpx float64) *Message

New returns an initialized Quote instance

func (Message) Marshal

func (m Message) Marshal() quickfix.Message

Marshal converts Message to a quickfix.Message instance

func (*Message) SetBidPx added in v0.2.0

func (m *Message) SetBidPx(v float64)

func (*Message) SetBidSize added in v0.2.0

func (m *Message) SetBidSize(v int)

func (*Message) SetIDSource added in v0.2.0

func (m *Message) SetIDSource(v string)

func (*Message) SetIssuer added in v0.2.0

func (m *Message) SetIssuer(v string)

func (*Message) SetOfferPx added in v0.2.0

func (m *Message) SetOfferPx(v float64)

func (*Message) SetOfferSize added in v0.2.0

func (m *Message) SetOfferSize(v int)

func (*Message) SetQuoteID added in v0.2.0

func (m *Message) SetQuoteID(v string)

func (*Message) SetQuoteReqID added in v0.2.0

func (m *Message) SetQuoteReqID(v string)

func (*Message) SetSecurityDesc added in v0.2.0

func (m *Message) SetSecurityDesc(v string)

func (*Message) SetSecurityID added in v0.2.0

func (m *Message) SetSecurityID(v string)

func (*Message) SetSymbol added in v0.2.0

func (m *Message) SetSymbol(v string)

func (*Message) SetSymbolSfx added in v0.2.0

func (m *Message) SetSymbolSfx(v string)

func (*Message) SetValidUntilTime added in v0.2.0

func (m *Message) SetValidUntilTime(v time.Time)

type RouteOut

type RouteOut func(msg Message, 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