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: 13 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"`
	fix44.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
	//FinancingDetails is a non-required component for IOI.
	FinancingDetails *financingdetails.FinancingDetails
	//NoUnderlyings is a non-required field for IOI.
	NoUnderlyings []NoUnderlyings `fix:"711,omitempty"`
	//Side is a required field for IOI.
	Side string `fix:"54"`
	//QtyType is a non-required field for IOI.
	QtyType *int `fix:"854"`
	//OrderQtyData is a non-required component for IOI.
	OrderQtyData *orderqtydata.OrderQtyData
	//IOIQty is a required field for IOI.
	IOIQty string `fix:"27"`
	//Currency is a non-required field for IOI.
	Currency *string `fix:"15"`
	//Stipulations is a non-required component for IOI.
	Stipulations *stipulations.Stipulations
	//NoLegs is a non-required field for IOI.
	NoLegs []NoLegs `fix:"555,omitempty"`
	//PriceType is a non-required field for IOI.
	PriceType *int `fix:"423"`
	//Price is a non-required field for IOI.
	Price *float64 `fix:"44"`
	//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
	//YieldData is a non-required component for IOI.
	YieldData *yielddata.YieldData
	fix44.Trailer
}

Message is a IOI FIX Message

func New

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

func (m *Message) SetCurrency(v string)

func (*Message) SetEncodedText

func (m *Message) SetEncodedText(v string)

func (*Message) SetEncodedTextLen

func (m *Message) SetEncodedTextLen(v int)

func (*Message) SetFinancingDetails

func (m *Message) SetFinancingDetails(v financingdetails.FinancingDetails)

func (*Message) SetIOIID

func (m *Message) SetIOIID(v string)

func (*Message) SetIOINaturalFlag

func (m *Message) SetIOINaturalFlag(v bool)

func (*Message) SetIOIQltyInd

func (m *Message) SetIOIQltyInd(v string)

func (*Message) SetIOIQty

func (m *Message) SetIOIQty(v string)

func (*Message) SetIOIRefID

func (m *Message) SetIOIRefID(v string)

func (*Message) SetIOITransType

func (m *Message) SetIOITransType(v string)

func (*Message) SetInstrument

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

func (*Message) SetNoIOIQualifiers

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

func (*Message) SetNoLegs

func (m *Message) SetNoLegs(v []NoLegs)

func (*Message) SetNoRoutingIDs

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

func (*Message) SetNoUnderlyings

func (m *Message) SetNoUnderlyings(v []NoUnderlyings)

func (*Message) SetOrderQtyData

func (m *Message) SetOrderQtyData(v orderqtydata.OrderQtyData)

func (*Message) SetPrice

func (m *Message) SetPrice(v float64)

func (*Message) SetPriceType

func (m *Message) SetPriceType(v int)

func (*Message) SetQtyType

func (m *Message) SetQtyType(v int)

func (*Message) SetSide

func (m *Message) SetSide(v string)

func (*Message) SetSpreadOrBenchmarkCurveData

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

func (*Message) SetStipulations

func (m *Message) SetStipulations(v stipulations.Stipulations)

func (*Message) SetText

func (m *Message) SetText(v string)

func (*Message) SetTransactTime

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

func (*Message) SetValidUntilTime

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

func (*Message) SetYieldData

func (m *Message) SetYieldData(v yielddata.YieldData)

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

func NewNoIOIQualifiers() *NoIOIQualifiers

NewNoIOIQualifiers returns an initialized NoIOIQualifiers instance

func (*NoIOIQualifiers) SetIOIQualifier

func (m *NoIOIQualifiers) SetIOIQualifier(v string)

type NoLegs

type NoLegs struct {
	//InstrumentLeg is a non-required component for NoLegs.
	InstrumentLeg *instrumentleg.InstrumentLeg
	//LegIOIQty is a non-required field for NoLegs.
	LegIOIQty *string `fix:"682"`
	//LegStipulations is a non-required component for NoLegs.
	LegStipulations *legstipulations.LegStipulations
}

NoLegs is a repeating group in IOI

func NewNoLegs

func NewNoLegs() *NoLegs

NewNoLegs returns an initialized NoLegs instance

func (*NoLegs) SetInstrumentLeg

func (m *NoLegs) SetInstrumentLeg(v instrumentleg.InstrumentLeg)

func (*NoLegs) SetLegIOIQty

func (m *NoLegs) SetLegIOIQty(v string)

func (*NoLegs) SetLegStipulations

func (m *NoLegs) SetLegStipulations(v legstipulations.LegStipulations)

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

func NewNoRoutingIDs() *NoRoutingIDs

NewNoRoutingIDs returns an initialized NoRoutingIDs instance

func (*NoRoutingIDs) SetRoutingID

func (m *NoRoutingIDs) SetRoutingID(v string)

func (*NoRoutingIDs) SetRoutingType

func (m *NoRoutingIDs) SetRoutingType(v int)

type NoUnderlyings

type NoUnderlyings struct {
	//UnderlyingInstrument is a non-required component for NoUnderlyings.
	UnderlyingInstrument *underlyinginstrument.UnderlyingInstrument
}

NoUnderlyings is a repeating group in IOI

func NewNoUnderlyings

func NewNoUnderlyings() *NoUnderlyings

NewNoUnderlyings returns an initialized NoUnderlyings instance

func (*NoUnderlyings) SetUnderlyingInstrument

func (m *NoUnderlyings) SetUnderlyingInstrument(v underlyinginstrument.UnderlyingInstrument)

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