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: 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"`
	fix40.Header
	//AllocID is a required field for Allocation.
	AllocID int `fix:"70"`
	//AllocTransType is a required field for Allocation.
	AllocTransType string `fix:"71"`
	//RefAllocID is a non-required field for Allocation.
	RefAllocID *int `fix:"72"`
	//NoOrders is a required field for Allocation.
	NoOrders []NoOrders `fix:"73"`
	//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"`
	//Issuer is a non-required field for Allocation.
	Issuer *string `fix:"106"`
	//SecurityDesc is a non-required field for Allocation.
	SecurityDesc *string `fix:"107"`
	//Shares is a required field for Allocation.
	Shares int `fix:"53"`
	//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"`
	//NetMoney is a non-required field for Allocation.
	NetMoney *float64 `fix:"118"`
	//NoMiscFees is a non-required field for Allocation.
	NoMiscFees []NoMiscFees `fix:"136,omitempty"`
	//SettlCurrAmt is a non-required field for Allocation.
	SettlCurrAmt *float64 `fix:"119"`
	//SettlCurrency is a non-required field for Allocation.
	SettlCurrency *string `fix:"120"`
	//OpenClose is a non-required field for Allocation.
	OpenClose *string `fix:"77"`
	//Text is a non-required field for Allocation.
	Text *string `fix:"58"`
	//NoAllocs is a required field for Allocation.
	NoAllocs []NoAllocs `fix:"78"`
	fix40.Trailer
}

Message is a Allocation FIX Message

func New

func New(allocid int, alloctranstype string, noorders []NoOrders, side string, symbol string, shares int, avgpx float64, tradedate string, noallocs []NoAllocs) *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) SetAllocID

func (m *Message) SetAllocID(v int)

func (*Message) SetAllocTransType

func (m *Message) SetAllocTransType(v string)

func (*Message) SetAvgPrxPrecision

func (m *Message) SetAvgPrxPrecision(v int)

func (*Message) SetAvgPx

func (m *Message) SetAvgPx(v float64)

func (*Message) SetCurrency

func (m *Message) SetCurrency(v string)

func (*Message) SetFutSettDate

func (m *Message) SetFutSettDate(v string)

func (*Message) SetIDSource

func (m *Message) SetIDSource(v string)

func (*Message) SetIssuer

func (m *Message) SetIssuer(v string)

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

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

func (*Message) SetNoOrders

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

func (*Message) SetOpenClose

func (m *Message) SetOpenClose(v string)

func (*Message) SetRefAllocID

func (m *Message) SetRefAllocID(v int)

func (*Message) SetSecurityDesc

func (m *Message) SetSecurityDesc(v string)

func (*Message) SetSecurityID

func (m *Message) SetSecurityID(v string)

func (*Message) SetSettlCurrAmt

func (m *Message) SetSettlCurrAmt(v float64)

func (*Message) SetSettlCurrency

func (m *Message) SetSettlCurrency(v string)

func (*Message) SetSettlmntTyp

func (m *Message) SetSettlmntTyp(v string)

func (*Message) SetShares

func (m *Message) SetShares(v int)

func (*Message) SetSide

func (m *Message) SetSide(v string)

func (*Message) SetSymbol

func (m *Message) SetSymbol(v string)

func (*Message) SetSymbolSfx

func (m *Message) SetSymbolSfx(v string)

func (*Message) SetText

func (m *Message) SetText(v string)

func (*Message) SetTradeDate

func (m *Message) SetTradeDate(v string)

func (*Message) SetTransactTime

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

type NoAllocs

type NoAllocs struct {
	//AllocAccount is a required field for NoAllocs.
	AllocAccount string `fix:"79"`
	//AllocShares is a required field for NoAllocs.
	AllocShares int `fix:"80"`
	//ProcessCode is a non-required field for NoAllocs.
	ProcessCode *string `fix:"81"`
	//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"`
	//NoDlvyInst is a non-required field for NoAllocs.
	NoDlvyInst *int `fix:"85"`
	//BrokerOfCredit is a non-required field for NoAllocs.
	BrokerOfCredit *string `fix:"92"`
	//DlvyInst is a non-required field for NoAllocs.
	DlvyInst *string `fix:"86"`
}

NoAllocs is a repeating group in Allocation

func NewNoAllocs

func NewNoAllocs(allocaccount string, allocshares int) *NoAllocs

NewNoAllocs returns an initialized NoAllocs instance

func (*NoAllocs) SetAllocAccount

func (m *NoAllocs) SetAllocAccount(v string)

func (*NoAllocs) SetAllocShares

func (m *NoAllocs) SetAllocShares(v int)

func (*NoAllocs) SetBrokerOfCredit

func (m *NoAllocs) SetBrokerOfCredit(v string)

func (*NoAllocs) SetClientID

func (m *NoAllocs) SetClientID(v string)

func (*NoAllocs) SetCommType

func (m *NoAllocs) SetCommType(v string)

func (*NoAllocs) SetCommission

func (m *NoAllocs) SetCommission(v float64)

func (*NoAllocs) SetDlvyInst

func (m *NoAllocs) SetDlvyInst(v string)

func (*NoAllocs) SetExecBroker

func (m *NoAllocs) SetExecBroker(v string)

func (*NoAllocs) SetNoDlvyInst

func (m *NoAllocs) SetNoDlvyInst(v int)

func (*NoAllocs) SetProcessCode

func (m *NoAllocs) SetProcessCode(v string)

type NoExecs

type NoExecs struct {
	//ExecID is a non-required field for NoExecs.
	ExecID *int `fix:"17"`
	//LastShares is a non-required field for NoExecs.
	LastShares *int `fix:"32"`
	//LastPx is a non-required field for NoExecs.
	LastPx *float64 `fix:"31"`
	//LastMkt is a non-required field for NoExecs.
	LastMkt *string `fix:"30"`
}

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

func (*NoExecs) SetLastMkt

func (m *NoExecs) SetLastMkt(v string)

func (*NoExecs) SetLastPx

func (m *NoExecs) SetLastPx(v float64)

func (*NoExecs) SetLastShares

func (m *NoExecs) SetLastShares(v int)

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 Allocation

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 required field for NoOrders.
	ClOrdID string `fix:"11"`
	//OrderID is a non-required field for NoOrders.
	OrderID *string `fix:"37"`
	//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

func NewNoOrders(clordid string) *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) SetWaveNo

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