allocation

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: 8 Imported by: 0

Documentation

Overview

Package allocation msg type = J.

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:"J"`
	fix43.Header
	//AllocID is a required field for Allocation.
	AllocID string `fix:"70"`
	//AllocTransType is a required field for Allocation.
	AllocTransType string `fix:"71"`
	//AllocType is a required field for Allocation.
	AllocType int `fix:"626"`
	//RefAllocID is a non-required field for Allocation.
	RefAllocID *string `fix:"72"`
	//AllocLinkID is a non-required field for Allocation.
	AllocLinkID *string `fix:"196"`
	//AllocLinkType is a non-required field for Allocation.
	AllocLinkType *int `fix:"197"`
	//BookingRefID is a non-required field for Allocation.
	BookingRefID *string `fix:"466"`
	//NoOrders is a non-required field for Allocation.
	NoOrders []NoOrders `fix:"73,omitempty"`
	//NoExecs is a non-required field for Allocation.
	NoExecs []NoExecs `fix:"124,omitempty"`
	//Side is a required field for Allocation.
	Side string `fix:"54"`
	//Instrument is a required component for Allocation.
	instrument.Instrument
	//Quantity is a required field for Allocation.
	Quantity float64 `fix:"53"`
	//LastMkt is a non-required field for Allocation.
	LastMkt *string `fix:"30"`
	//TradeOriginationDate is a non-required field for Allocation.
	TradeOriginationDate *string `fix:"229"`
	//TradingSessionID is a non-required field for Allocation.
	TradingSessionID *string `fix:"336"`
	//TradingSessionSubID is a non-required field for Allocation.
	TradingSessionSubID *string `fix:"625"`
	//PriceType is a non-required field for Allocation.
	PriceType *int `fix:"423"`
	//AvgPx is a required field for Allocation.
	AvgPx float64 `fix:"6"`
	//Currency is a non-required field for Allocation.
	Currency *string `fix:"15"`
	//AvgPrxPrecision is a non-required field for Allocation.
	AvgPrxPrecision *int `fix:"74"`
	//Parties is a non-required component for Allocation.
	Parties *parties.Parties
	//TradeDate is a required field for Allocation.
	TradeDate string `fix:"75"`
	//TransactTime is a non-required field for Allocation.
	TransactTime *time.Time `fix:"60"`
	//SettlmntTyp is a non-required field for Allocation.
	SettlmntTyp *string `fix:"63"`
	//FutSettDate is a non-required field for Allocation.
	FutSettDate *string `fix:"64"`
	//GrossTradeAmt is a non-required field for Allocation.
	GrossTradeAmt *float64 `fix:"381"`
	//Concession is a non-required field for Allocation.
	Concession *float64 `fix:"238"`
	//TotalTakedown is a non-required field for Allocation.
	TotalTakedown *float64 `fix:"237"`
	//NetMoney is a non-required field for Allocation.
	NetMoney *float64 `fix:"118"`
	//PositionEffect is a non-required field for Allocation.
	PositionEffect *string `fix:"77"`
	//Text is a non-required field for Allocation.
	Text *string `fix:"58"`
	//EncodedTextLen is a non-required field for Allocation.
	EncodedTextLen *int `fix:"354"`
	//EncodedText is a non-required field for Allocation.
	EncodedText *string `fix:"355"`
	//NumDaysInterest is a non-required field for Allocation.
	NumDaysInterest *int `fix:"157"`
	//AccruedInterestRate is a non-required field for Allocation.
	AccruedInterestRate *float64 `fix:"158"`
	//TotalAccruedInterestAmt is a non-required field for Allocation.
	TotalAccruedInterestAmt *float64 `fix:"540"`
	//LegalConfirm is a non-required field for Allocation.
	LegalConfirm *bool `fix:"650"`
	//NoAllocs is a non-required field for Allocation.
	NoAllocs []NoAllocs `fix:"78,omitempty"`
	fix43.Trailer
}

Message is a Allocation FIX Message

func New

func New(allocid string, alloctranstype string, alloctype int, side string, instrument instrument.Instrument, quantity float64, avgpx float64, tradedate string) *Message

New returns an initialized Allocation instance

func (Message) Marshal

func (m Message) Marshal() quickfix.Message

Marshal converts Message to a quickfix.Message instance

func (*Message) SetAccruedInterestRate

func (m *Message) SetAccruedInterestRate(v float64)

func (*Message) SetAllocID

func (m *Message) SetAllocID(v string)

func (*Message) SetAllocLinkID

func (m *Message) SetAllocLinkID(v string)

func (*Message) SetAllocLinkType

func (m *Message) SetAllocLinkType(v int)

func (*Message) SetAllocTransType

func (m *Message) SetAllocTransType(v string)

func (*Message) SetAllocType

func (m *Message) SetAllocType(v int)

func (*Message) SetAvgPrxPrecision

func (m *Message) SetAvgPrxPrecision(v int)

func (*Message) SetAvgPx

func (m *Message) SetAvgPx(v float64)

func (*Message) SetBookingRefID

func (m *Message) SetBookingRefID(v string)

func (*Message) SetConcession

func (m *Message) SetConcession(v float64)

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

func (m *Message) SetFutSettDate(v string)

func (*Message) SetGrossTradeAmt

func (m *Message) SetGrossTradeAmt(v float64)

func (*Message) SetInstrument

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

func (*Message) SetLastMkt

func (m *Message) SetLastMkt(v string)

func (*Message) SetLegalConfirm

func (m *Message) SetLegalConfirm(v bool)

func (*Message) SetNetMoney

func (m *Message) SetNetMoney(v float64)

func (*Message) SetNoAllocs

func (m *Message) SetNoAllocs(v []NoAllocs)

func (*Message) SetNoExecs

func (m *Message) SetNoExecs(v []NoExecs)

func (*Message) SetNoOrders

func (m *Message) SetNoOrders(v []NoOrders)

func (*Message) SetNumDaysInterest

func (m *Message) SetNumDaysInterest(v int)

func (*Message) SetParties

func (m *Message) SetParties(v parties.Parties)

func (*Message) SetPositionEffect

func (m *Message) SetPositionEffect(v string)

func (*Message) SetPriceType

func (m *Message) SetPriceType(v int)

func (*Message) SetQuantity

func (m *Message) SetQuantity(v float64)

func (*Message) SetRefAllocID

func (m *Message) SetRefAllocID(v string)

func (*Message) SetSettlmntTyp

func (m *Message) SetSettlmntTyp(v string)

func (*Message) SetSide

func (m *Message) SetSide(v string)

func (*Message) SetText

func (m *Message) SetText(v string)

func (*Message) SetTotalAccruedInterestAmt

func (m *Message) SetTotalAccruedInterestAmt(v float64)

func (*Message) SetTotalTakedown

func (m *Message) SetTotalTakedown(v float64)

func (*Message) SetTradeDate

func (m *Message) SetTradeDate(v string)

func (*Message) SetTradeOriginationDate

func (m *Message) SetTradeOriginationDate(v string)

func (*Message) SetTradingSessionID

func (m *Message) SetTradingSessionID(v string)

func (*Message) SetTradingSessionSubID

func (m *Message) SetTradingSessionSubID(v string)

func (*Message) SetTransactTime

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

type NoAllocs

type NoAllocs struct {
	//AllocAccount is a non-required field for NoAllocs.
	AllocAccount *string `fix:"79"`
	//AllocPrice is a non-required field for NoAllocs.
	AllocPrice *float64 `fix:"366"`
	//AllocQty is a non-required field for NoAllocs.
	AllocQty *float64 `fix:"80"`
	//IndividualAllocID is a non-required field for NoAllocs.
	IndividualAllocID *string `fix:"467"`
	//ProcessCode is a non-required field for NoAllocs.
	ProcessCode *string `fix:"81"`
	//NestedParties is a non-required component for NoAllocs.
	NestedParties *nestedparties.NestedParties
	//NotifyBrokerOfCredit is a non-required field for NoAllocs.
	NotifyBrokerOfCredit *bool `fix:"208"`
	//AllocHandlInst is a non-required field for NoAllocs.
	AllocHandlInst *int `fix:"209"`
	//AllocText is a non-required field for NoAllocs.
	AllocText *string `fix:"161"`
	//EncodedAllocTextLen is a non-required field for NoAllocs.
	EncodedAllocTextLen *int `fix:"360"`
	//EncodedAllocText is a non-required field for NoAllocs.
	EncodedAllocText *string `fix:"361"`
	//CommissionData is a non-required component for NoAllocs.
	CommissionData *commissiondata.CommissionData
	//AllocAvgPx is a non-required field for NoAllocs.
	AllocAvgPx *float64 `fix:"153"`
	//AllocNetMoney is a non-required field for NoAllocs.
	AllocNetMoney *float64 `fix:"154"`
	//SettlCurrAmt is a non-required field for NoAllocs.
	SettlCurrAmt *float64 `fix:"119"`
	//SettlCurrency is a non-required field for NoAllocs.
	SettlCurrency *string `fix:"120"`
	//SettlCurrFxRate is a non-required field for NoAllocs.
	SettlCurrFxRate *float64 `fix:"155"`
	//SettlCurrFxRateCalc is a non-required field for NoAllocs.
	SettlCurrFxRateCalc *string `fix:"156"`
	//AccruedInterestAmt is a non-required field for NoAllocs.
	AccruedInterestAmt *float64 `fix:"159"`
	//SettlInstMode is a non-required field for NoAllocs.
	SettlInstMode *string `fix:"160"`
	//NoMiscFees is a non-required field for NoAllocs.
	NoMiscFees []NoMiscFees `fix:"136,omitempty"`
}

NoAllocs is a repeating group in Allocation

func NewNoAllocs

func NewNoAllocs() *NoAllocs

NewNoAllocs returns an initialized NoAllocs instance

func (*NoAllocs) SetAccruedInterestAmt

func (m *NoAllocs) SetAccruedInterestAmt(v float64)

func (*NoAllocs) SetAllocAccount

func (m *NoAllocs) SetAllocAccount(v string)

func (*NoAllocs) SetAllocAvgPx

func (m *NoAllocs) SetAllocAvgPx(v float64)

func (*NoAllocs) SetAllocHandlInst

func (m *NoAllocs) SetAllocHandlInst(v int)

func (*NoAllocs) SetAllocNetMoney

func (m *NoAllocs) SetAllocNetMoney(v float64)

func (*NoAllocs) SetAllocPrice

func (m *NoAllocs) SetAllocPrice(v float64)

func (*NoAllocs) SetAllocQty

func (m *NoAllocs) SetAllocQty(v float64)

func (*NoAllocs) SetAllocText

func (m *NoAllocs) SetAllocText(v string)

func (*NoAllocs) SetCommissionData

func (m *NoAllocs) SetCommissionData(v commissiondata.CommissionData)

func (*NoAllocs) SetEncodedAllocText

func (m *NoAllocs) SetEncodedAllocText(v string)

func (*NoAllocs) SetEncodedAllocTextLen

func (m *NoAllocs) SetEncodedAllocTextLen(v int)

func (*NoAllocs) SetIndividualAllocID

func (m *NoAllocs) SetIndividualAllocID(v string)

func (*NoAllocs) SetNestedParties

func (m *NoAllocs) SetNestedParties(v nestedparties.NestedParties)

func (*NoAllocs) SetNoMiscFees

func (m *NoAllocs) SetNoMiscFees(v []NoMiscFees)

func (*NoAllocs) SetNotifyBrokerOfCredit

func (m *NoAllocs) SetNotifyBrokerOfCredit(v bool)

func (*NoAllocs) SetProcessCode

func (m *NoAllocs) SetProcessCode(v string)

func (*NoAllocs) SetSettlCurrAmt

func (m *NoAllocs) SetSettlCurrAmt(v float64)

func (*NoAllocs) SetSettlCurrFxRate

func (m *NoAllocs) SetSettlCurrFxRate(v float64)

func (*NoAllocs) SetSettlCurrFxRateCalc

func (m *NoAllocs) SetSettlCurrFxRateCalc(v string)

func (*NoAllocs) SetSettlCurrency

func (m *NoAllocs) SetSettlCurrency(v string)

func (*NoAllocs) SetSettlInstMode

func (m *NoAllocs) SetSettlInstMode(v string)

type NoExecs

type NoExecs struct {
	//LastQty is a non-required field for NoExecs.
	LastQty *float64 `fix:"32"`
	//ExecID is a non-required field for NoExecs.
	ExecID *string `fix:"17"`
	//SecondaryExecID is a non-required field for NoExecs.
	SecondaryExecID *string `fix:"527"`
	//LastPx is a non-required field for NoExecs.
	LastPx *float64 `fix:"31"`
	//LastCapacity is a non-required field for NoExecs.
	LastCapacity *string `fix:"29"`
}

NoExecs is a repeating group in Allocation

func NewNoExecs

func NewNoExecs() *NoExecs

NewNoExecs returns an initialized NoExecs instance

func (*NoExecs) SetExecID

func (m *NoExecs) SetExecID(v string)

func (*NoExecs) SetLastCapacity

func (m *NoExecs) SetLastCapacity(v string)

func (*NoExecs) SetLastPx

func (m *NoExecs) SetLastPx(v float64)

func (*NoExecs) SetLastQty

func (m *NoExecs) SetLastQty(v float64)

func (*NoExecs) SetSecondaryExecID

func (m *NoExecs) SetSecondaryExecID(v string)

type NoMiscFees

type NoMiscFees struct {
	//MiscFeeAmt is a non-required field for NoMiscFees.
	MiscFeeAmt *float64 `fix:"137"`
	//MiscFeeCurr is a non-required field for NoMiscFees.
	MiscFeeCurr *string `fix:"138"`
	//MiscFeeType is a non-required field for NoMiscFees.
	MiscFeeType *string `fix:"139"`
}

NoMiscFees is a repeating group in NoAllocs

func NewNoMiscFees

func NewNoMiscFees() *NoMiscFees

NewNoMiscFees returns an initialized NoMiscFees instance

func (*NoMiscFees) SetMiscFeeAmt

func (m *NoMiscFees) SetMiscFeeAmt(v float64)

func (*NoMiscFees) SetMiscFeeCurr

func (m *NoMiscFees) SetMiscFeeCurr(v string)

func (*NoMiscFees) SetMiscFeeType

func (m *NoMiscFees) SetMiscFeeType(v string)

type NoOrders

type NoOrders struct {
	//ClOrdID is a non-required field for NoOrders.
	ClOrdID *string `fix:"11"`
	//OrderID is a non-required field for NoOrders.
	OrderID *string `fix:"37"`
	//SecondaryOrderID is a non-required field for NoOrders.
	SecondaryOrderID *string `fix:"198"`
	//SecondaryClOrdID is a non-required field for NoOrders.
	SecondaryClOrdID *string `fix:"526"`
	//ListID is a non-required field for NoOrders.
	ListID *string `fix:"66"`
}

NoOrders is a repeating group in Allocation

func NewNoOrders

func NewNoOrders() *NoOrders

NewNoOrders returns an initialized NoOrders instance

func (*NoOrders) SetClOrdID

func (m *NoOrders) SetClOrdID(v string)

func (*NoOrders) SetListID

func (m *NoOrders) SetListID(v string)

func (*NoOrders) SetOrderID

func (m *NoOrders) SetOrderID(v string)

func (*NoOrders) SetSecondaryClOrdID

func (m *NoOrders) SetSecondaryClOrdID(v string)

func (*NoOrders) SetSecondaryOrderID

func (m *NoOrders) SetSecondaryOrderID(v string)

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