ioi

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2016 License: Apache-1.1 Imports: 6 Imported by: 0

Documentation

Overview

Package ioi msg type = 6.

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:"6"`
	fix43.Header
	//IOIid is a required field for IOI.
	IOIid string `fix:"23"`
	//IOITransType is a required field for IOI.
	IOITransType string `fix:"28"`
	//IOIRefID is a non-required field for IOI.
	IOIRefID *string `fix:"26"`
	//Instrument is a required component for IOI.
	instrument.Instrument
	//Side is a required field for IOI.
	Side string `fix:"54"`
	//QuantityType is a non-required field for IOI.
	QuantityType *int `fix:"465"`
	//IOIQty is a required field for IOI.
	IOIQty string `fix:"27"`
	//PriceType is a non-required field for IOI.
	PriceType *int `fix:"423"`
	//Price is a non-required field for IOI.
	Price *float64 `fix:"44"`
	//Currency is a non-required field for IOI.
	Currency *string `fix:"15"`
	//ValidUntilTime is a non-required field for IOI.
	ValidUntilTime *time.Time `fix:"62"`
	//IOIQltyInd is a non-required field for IOI.
	IOIQltyInd *string `fix:"25"`
	//IOINaturalFlag is a non-required field for IOI.
	IOINaturalFlag *bool `fix:"130"`
	//NoIOIQualifiers is a non-required field for IOI.
	NoIOIQualifiers []NoIOIQualifiers `fix:"199,omitempty"`
	//Text is a non-required field for IOI.
	Text *string `fix:"58"`
	//EncodedTextLen is a non-required field for IOI.
	EncodedTextLen *int `fix:"354"`
	//EncodedText is a non-required field for IOI.
	EncodedText *string `fix:"355"`
	//TransactTime is a non-required field for IOI.
	TransactTime *time.Time `fix:"60"`
	//URLLink is a non-required field for IOI.
	URLLink *string `fix:"149"`
	//NoRoutingIDs is a non-required field for IOI.
	NoRoutingIDs []NoRoutingIDs `fix:"215,omitempty"`
	//SpreadOrBenchmarkCurveData is a non-required component for IOI.
	SpreadOrBenchmarkCurveData *spreadorbenchmarkcurvedata.SpreadOrBenchmarkCurveData
	//Benchmark is a non-required field for IOI.
	Benchmark *string `fix:"219"`
	fix43.Trailer
}

Message is a IOI FIX Message

func New added in v0.2.0

func New(ioiid string, ioitranstype string, instrument instrument.Instrument, side string, ioiqty string) *Message

New returns an initialized IOI instance

func (Message) Marshal

func (m Message) Marshal() quickfix.Message

Marshal converts Message to a quickfix.Message instance

func (*Message) SetBenchmark added in v0.2.0

func (m *Message) SetBenchmark(v string)

func (*Message) SetCurrency added in v0.2.0

func (m *Message) SetCurrency(v string)

func (*Message) SetEncodedText added in v0.2.0

func (m *Message) SetEncodedText(v string)

func (*Message) SetEncodedTextLen added in v0.2.0

func (m *Message) SetEncodedTextLen(v int)

func (*Message) SetIOINaturalFlag added in v0.2.0

func (m *Message) SetIOINaturalFlag(v bool)

func (*Message) SetIOIQltyInd added in v0.2.0

func (m *Message) SetIOIQltyInd(v string)

func (*Message) SetIOIQty added in v0.2.0

func (m *Message) SetIOIQty(v string)

func (*Message) SetIOIRefID added in v0.2.0

func (m *Message) SetIOIRefID(v string)

func (*Message) SetIOITransType added in v0.2.0

func (m *Message) SetIOITransType(v string)

func (*Message) SetIOIid added in v0.2.0

func (m *Message) SetIOIid(v string)

func (*Message) SetInstrument added in v0.2.0

func (m *Message) SetInstrument(v instrument.Instrument)

func (*Message) SetNoIOIQualifiers added in v0.2.0

func (m *Message) SetNoIOIQualifiers(v []NoIOIQualifiers)

func (*Message) SetNoRoutingIDs added in v0.2.0

func (m *Message) SetNoRoutingIDs(v []NoRoutingIDs)

func (*Message) SetPrice added in v0.2.0

func (m *Message) SetPrice(v float64)

func (*Message) SetPriceType added in v0.2.0

func (m *Message) SetPriceType(v int)

func (*Message) SetQuantityType added in v0.2.0

func (m *Message) SetQuantityType(v int)

func (*Message) SetSide added in v0.2.0

func (m *Message) SetSide(v string)

func (*Message) SetSpreadOrBenchmarkCurveData added in v0.2.0

func (m *Message) SetSpreadOrBenchmarkCurveData(v spreadorbenchmarkcurvedata.SpreadOrBenchmarkCurveData)

func (*Message) SetText added in v0.2.0

func (m *Message) SetText(v string)

func (*Message) SetTransactTime added in v0.2.0

func (m *Message) SetTransactTime(v time.Time)
func (m *Message) SetURLLink(v string)

func (*Message) SetValidUntilTime added in v0.2.0

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

type NoIOIQualifiers

type NoIOIQualifiers struct {
	//IOIQualifier is a non-required field for NoIOIQualifiers.
	IOIQualifier *string `fix:"104"`
}

NoIOIQualifiers is a repeating group in IOI

func NewNoIOIQualifiers added in v0.2.0

func NewNoIOIQualifiers() *NoIOIQualifiers

NewNoIOIQualifiers returns an initialized NoIOIQualifiers instance

func (*NoIOIQualifiers) SetIOIQualifier added in v0.2.0

func (m *NoIOIQualifiers) SetIOIQualifier(v string)

type NoRoutingIDs

type NoRoutingIDs struct {
	//RoutingType is a non-required field for NoRoutingIDs.
	RoutingType *int `fix:"216"`
	//RoutingID is a non-required field for NoRoutingIDs.
	RoutingID *string `fix:"217"`
}

NoRoutingIDs is a repeating group in IOI

func NewNoRoutingIDs added in v0.2.0

func NewNoRoutingIDs() *NoRoutingIDs

NewNoRoutingIDs returns an initialized NoRoutingIDs instance

func (*NoRoutingIDs) SetRoutingID added in v0.2.0

func (m *NoRoutingIDs) SetRoutingID(v string)

func (*NoRoutingIDs) SetRoutingType added in v0.2.0

func (m *NoRoutingIDs) SetRoutingType(v int)

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