allocation

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 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"`
	fix42.Header
	//AllocID is a required field for Allocation.
	AllocID string `fix:"70"`
	//AllocTransType is a required field for Allocation.
	AllocTransType string `fix:"71"`
	//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"`
	//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"`
	//Symbol is a required field for Allocation.
	Symbol string `fix:"55"`
	//SymbolSfx is a non-required field for Allocation.
	SymbolSfx *string `fix:"65"`
	//SecurityID is a non-required field for Allocation.
	SecurityID *string `fix:"48"`
	//IDSource is a non-required field for Allocation.
	IDSource *string `fix:"22"`
	//SecurityType is a non-required field for Allocation.
	SecurityType *string `fix:"167"`
	//MaturityMonthYear is a non-required field for Allocation.
	MaturityMonthYear *string `fix:"200"`
	//MaturityDay is a non-required field for Allocation.
	MaturityDay *int `fix:"205"`
	//PutOrCall is a non-required field for Allocation.
	PutOrCall *int `fix:"201"`
	//StrikePrice is a non-required field for Allocation.
	StrikePrice *float64 `fix:"202"`
	//OptAttribute is a non-required field for Allocation.
	OptAttribute *string `fix:"206"`
	//ContractMultiplier is a non-required field for Allocation.
	ContractMultiplier *float64 `fix:"231"`
	//CouponRate is a non-required field for Allocation.
	CouponRate *float64 `fix:"223"`
	//SecurityExchange is a non-required field for Allocation.
	SecurityExchange *string `fix:"207"`
	//Issuer is a non-required field for Allocation.
	Issuer *string `fix:"106"`
	//EncodedIssuerLen is a non-required field for Allocation.
	EncodedIssuerLen *int `fix:"348"`
	//EncodedIssuer is a non-required field for Allocation.
	EncodedIssuer *string `fix:"349"`
	//SecurityDesc is a non-required field for Allocation.
	SecurityDesc *string `fix:"107"`
	//EncodedSecurityDescLen is a non-required field for Allocation.
	EncodedSecurityDescLen *int `fix:"350"`
	//EncodedSecurityDesc is a non-required field for Allocation.
	EncodedSecurityDesc *string `fix:"351"`
	//Shares is a required field for Allocation.
	Shares float64 `fix:"53"`
	//LastMkt is a non-required field for Allocation.
	LastMkt *string `fix:"30"`
	//TradingSessionID is a non-required field for Allocation.
	TradingSessionID *string `fix:"336"`
	//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"`
	//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"`
	//NetMoney is a non-required field for Allocation.
	NetMoney *float64 `fix:"118"`
	//OpenClose is a non-required field for Allocation.
	OpenClose *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"`
	//NoAllocs is a non-required field for Allocation.
	NoAllocs []NoAllocs `fix:"78,omitempty"`
	fix42.Trailer
}

Message is a Allocation FIX Message

func New added in v0.2.0

func New(allocid string, alloctranstype string, side string, symbol string, shares 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 added in v0.2.0

func (m *Message) SetAccruedInterestRate(v float64)

func (*Message) SetAllocID added in v0.2.0

func (m *Message) SetAllocID(v string)

func (*Message) SetAllocLinkID added in v0.2.0

func (m *Message) SetAllocLinkID(v string)

func (*Message) SetAllocLinkType added in v0.2.0

func (m *Message) SetAllocLinkType(v int)

func (*Message) SetAllocTransType added in v0.2.0

func (m *Message) SetAllocTransType(v string)

func (*Message) SetAvgPrxPrecision added in v0.2.0

func (m *Message) SetAvgPrxPrecision(v int)

func (*Message) SetAvgPx added in v0.2.0

func (m *Message) SetAvgPx(v float64)

func (*Message) SetContractMultiplier added in v0.2.0

func (m *Message) SetContractMultiplier(v float64)

func (*Message) SetCouponRate added in v0.2.0

func (m *Message) SetCouponRate(v float64)

func (*Message) SetCurrency added in v0.2.0

func (m *Message) SetCurrency(v string)

func (*Message) SetEncodedIssuer added in v0.2.0

func (m *Message) SetEncodedIssuer(v string)

func (*Message) SetEncodedIssuerLen added in v0.2.0

func (m *Message) SetEncodedIssuerLen(v int)

func (*Message) SetEncodedSecurityDesc added in v0.2.0

func (m *Message) SetEncodedSecurityDesc(v string)

func (*Message) SetEncodedSecurityDescLen added in v0.2.0

func (m *Message) SetEncodedSecurityDescLen(v int)

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) SetFutSettDate added in v0.2.0

func (m *Message) SetFutSettDate(v string)

func (*Message) SetGrossTradeAmt added in v0.2.0

func (m *Message) SetGrossTradeAmt(v float64)

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) SetLastMkt added in v0.2.0

func (m *Message) SetLastMkt(v string)

func (*Message) SetMaturityDay added in v0.2.0

func (m *Message) SetMaturityDay(v int)

func (*Message) SetMaturityMonthYear added in v0.2.0

func (m *Message) SetMaturityMonthYear(v string)

func (*Message) SetNetMoney added in v0.2.0

func (m *Message) SetNetMoney(v float64)

func (*Message) SetNoAllocs added in v0.2.0

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

func (*Message) SetNoExecs added in v0.2.0

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

func (*Message) SetNoOrders added in v0.2.0

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

func (*Message) SetNumDaysInterest added in v0.2.0

func (m *Message) SetNumDaysInterest(v int)

func (*Message) SetOpenClose added in v0.2.0

func (m *Message) SetOpenClose(v string)

func (*Message) SetOptAttribute added in v0.2.0

func (m *Message) SetOptAttribute(v string)

func (*Message) SetPutOrCall added in v0.2.0

func (m *Message) SetPutOrCall(v int)

func (*Message) SetRefAllocID added in v0.2.0

func (m *Message) SetRefAllocID(v string)

func (*Message) SetSecurityDesc added in v0.2.0

func (m *Message) SetSecurityDesc(v string)

func (*Message) SetSecurityExchange added in v0.2.0

func (m *Message) SetSecurityExchange(v string)

func (*Message) SetSecurityID added in v0.2.0

func (m *Message) SetSecurityID(v string)

func (*Message) SetSecurityType added in v0.2.0

func (m *Message) SetSecurityType(v string)

func (*Message) SetSettlmntTyp added in v0.2.0

func (m *Message) SetSettlmntTyp(v string)

func (*Message) SetShares added in v0.2.0

func (m *Message) SetShares(v float64)

func (*Message) SetSide added in v0.2.0

func (m *Message) SetSide(v string)

func (*Message) SetStrikePrice added in v0.2.0

func (m *Message) SetStrikePrice(v float64)

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) SetText added in v0.2.0

func (m *Message) SetText(v string)

func (*Message) SetTradeDate added in v0.2.0

func (m *Message) SetTradeDate(v string)

func (*Message) SetTradingSessionID added in v0.2.0

func (m *Message) SetTradingSessionID(v string)

func (*Message) SetTransactTime added in v0.2.0

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"`
	//AllocShares is a required field for NoAllocs.
	AllocShares float64 `fix:"80"`
	//ProcessCode is a non-required field for NoAllocs.
	ProcessCode *string `fix:"81"`
	//BrokerOfCredit is a non-required field for NoAllocs.
	BrokerOfCredit *string `fix:"92"`
	//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"`
	//ExecBroker is a non-required field for NoAllocs.
	ExecBroker *string `fix:"76"`
	//ClientID is a non-required field for NoAllocs.
	ClientID *string `fix:"109"`
	//Commission is a non-required field for NoAllocs.
	Commission *float64 `fix:"12"`
	//CommType is a non-required field for NoAllocs.
	CommType *string `fix:"13"`
	//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 added in v0.2.0

func NewNoAllocs(allocshares float64) *NoAllocs

NewNoAllocs returns an initialized NoAllocs instance

func (*NoAllocs) SetAccruedInterestAmt added in v0.2.0

func (m *NoAllocs) SetAccruedInterestAmt(v float64)

func (*NoAllocs) SetAllocAccount added in v0.2.0

func (m *NoAllocs) SetAllocAccount(v string)

func (*NoAllocs) SetAllocAvgPx added in v0.2.0

func (m *NoAllocs) SetAllocAvgPx(v float64)

func (*NoAllocs) SetAllocHandlInst added in v0.2.0

func (m *NoAllocs) SetAllocHandlInst(v int)

func (*NoAllocs) SetAllocNetMoney added in v0.2.0

func (m *NoAllocs) SetAllocNetMoney(v float64)

func (*NoAllocs) SetAllocPrice added in v0.2.0

func (m *NoAllocs) SetAllocPrice(v float64)

func (*NoAllocs) SetAllocShares added in v0.2.0

func (m *NoAllocs) SetAllocShares(v float64)

func (*NoAllocs) SetAllocText added in v0.2.0

func (m *NoAllocs) SetAllocText(v string)

func (*NoAllocs) SetBrokerOfCredit added in v0.2.0

func (m *NoAllocs) SetBrokerOfCredit(v string)

func (*NoAllocs) SetClientID added in v0.2.0

func (m *NoAllocs) SetClientID(v string)

func (*NoAllocs) SetCommType added in v0.2.0

func (m *NoAllocs) SetCommType(v string)

func (*NoAllocs) SetCommission added in v0.2.0

func (m *NoAllocs) SetCommission(v float64)

func (*NoAllocs) SetEncodedAllocText added in v0.2.0

func (m *NoAllocs) SetEncodedAllocText(v string)

func (*NoAllocs) SetEncodedAllocTextLen added in v0.2.0

func (m *NoAllocs) SetEncodedAllocTextLen(v int)

func (*NoAllocs) SetExecBroker added in v0.2.0

func (m *NoAllocs) SetExecBroker(v string)

func (*NoAllocs) SetNoMiscFees added in v0.2.0

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

func (*NoAllocs) SetNotifyBrokerOfCredit added in v0.2.0

func (m *NoAllocs) SetNotifyBrokerOfCredit(v bool)

func (*NoAllocs) SetProcessCode added in v0.2.0

func (m *NoAllocs) SetProcessCode(v string)

func (*NoAllocs) SetSettlCurrAmt added in v0.2.0

func (m *NoAllocs) SetSettlCurrAmt(v float64)

func (*NoAllocs) SetSettlCurrFxRate added in v0.2.0

func (m *NoAllocs) SetSettlCurrFxRate(v float64)

func (*NoAllocs) SetSettlCurrFxRateCalc added in v0.2.0

func (m *NoAllocs) SetSettlCurrFxRateCalc(v string)

func (*NoAllocs) SetSettlCurrency added in v0.2.0

func (m *NoAllocs) SetSettlCurrency(v string)

func (*NoAllocs) SetSettlInstMode added in v0.2.0

func (m *NoAllocs) SetSettlInstMode(v string)

type NoExecs

type NoExecs struct {
	//LastShares is a non-required field for NoExecs.
	LastShares *float64 `fix:"32"`
	//ExecID is a non-required field for NoExecs.
	ExecID *string `fix:"17"`
	//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 added in v0.2.0

func NewNoExecs() *NoExecs

NewNoExecs returns an initialized NoExecs instance

func (*NoExecs) SetExecID added in v0.2.0

func (m *NoExecs) SetExecID(v string)

func (*NoExecs) SetLastCapacity added in v0.2.0

func (m *NoExecs) SetLastCapacity(v string)

func (*NoExecs) SetLastPx added in v0.2.0

func (m *NoExecs) SetLastPx(v float64)

func (*NoExecs) SetLastShares added in v0.2.0

func (m *NoExecs) SetLastShares(v float64)

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 added in v0.2.0

func NewNoMiscFees() *NoMiscFees

NewNoMiscFees returns an initialized NoMiscFees instance

func (*NoMiscFees) SetMiscFeeAmt added in v0.2.0

func (m *NoMiscFees) SetMiscFeeAmt(v float64)

func (*NoMiscFees) SetMiscFeeCurr added in v0.2.0

func (m *NoMiscFees) SetMiscFeeCurr(v string)

func (*NoMiscFees) SetMiscFeeType added in v0.2.0

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"`
	//ListID is a non-required field for NoOrders.
	ListID *string `fix:"66"`
	//WaveNo is a non-required field for NoOrders.
	WaveNo *string `fix:"105"`
}

NoOrders is a repeating group in Allocation

func NewNoOrders added in v0.2.0

func NewNoOrders() *NoOrders

NewNoOrders returns an initialized NoOrders instance

func (*NoOrders) SetClOrdID added in v0.2.0

func (m *NoOrders) SetClOrdID(v string)

func (*NoOrders) SetListID added in v0.2.0

func (m *NoOrders) SetListID(v string)

func (*NoOrders) SetOrderID added in v0.2.0

func (m *NoOrders) SetOrderID(v string)

func (*NoOrders) SetSecondaryOrderID added in v0.2.0

func (m *NoOrders) SetSecondaryOrderID(v string)

func (*NoOrders) SetWaveNo added in v0.2.0

func (m *NoOrders) SetWaveNo(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