tradecapturereport

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

Documentation

Overview

Package tradecapturereport msg type = AE.

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:"AE"`
	fix43.Header
	//TradeReportID is a required field for TradeCaptureReport.
	TradeReportID string `fix:"571"`
	//TradeReportTransType is a non-required field for TradeCaptureReport.
	TradeReportTransType *string `fix:"487"`
	//TradeRequestID is a non-required field for TradeCaptureReport.
	TradeRequestID *string `fix:"568"`
	//ExecType is a required field for TradeCaptureReport.
	ExecType string `fix:"150"`
	//TradeReportRefID is a non-required field for TradeCaptureReport.
	TradeReportRefID *string `fix:"572"`
	//ExecID is a non-required field for TradeCaptureReport.
	ExecID *string `fix:"17"`
	//SecondaryExecID is a non-required field for TradeCaptureReport.
	SecondaryExecID *string `fix:"527"`
	//ExecRestatementReason is a non-required field for TradeCaptureReport.
	ExecRestatementReason *int `fix:"378"`
	//PreviouslyReported is a required field for TradeCaptureReport.
	PreviouslyReported bool `fix:"570"`
	//Instrument is a required component for TradeCaptureReport.
	instrument.Instrument
	//OrderQtyData is a non-required component for TradeCaptureReport.
	OrderQtyData *orderqtydata.OrderQtyData
	//LastQty is a required field for TradeCaptureReport.
	LastQty float64 `fix:"32"`
	//LastPx is a required field for TradeCaptureReport.
	LastPx float64 `fix:"31"`
	//LastSpotRate is a non-required field for TradeCaptureReport.
	LastSpotRate *float64 `fix:"194"`
	//LastForwardPoints is a non-required field for TradeCaptureReport.
	LastForwardPoints *float64 `fix:"195"`
	//LastMkt is a non-required field for TradeCaptureReport.
	LastMkt *string `fix:"30"`
	//TradeDate is a required field for TradeCaptureReport.
	TradeDate string `fix:"75"`
	//TransactTime is a required field for TradeCaptureReport.
	TransactTime time.Time `fix:"60"`
	//SettlmntTyp is a non-required field for TradeCaptureReport.
	SettlmntTyp *string `fix:"63"`
	//FutSettDate is a non-required field for TradeCaptureReport.
	FutSettDate *string `fix:"64"`
	//MatchStatus is a non-required field for TradeCaptureReport.
	MatchStatus *string `fix:"573"`
	//MatchType is a non-required field for TradeCaptureReport.
	MatchType *string `fix:"574"`
	//NoSides is a required field for TradeCaptureReport.
	NoSides []NoSides `fix:"552"`
	fix43.Trailer
}

Message is a TradeCaptureReport FIX Message

func New added in v0.2.0

func New(tradereportid string, exectype string, previouslyreported bool, instrument instrument.Instrument, lastqty float64, lastpx float64, tradedate string, transacttime time.Time, nosides []NoSides) *Message

New returns an initialized TradeCaptureReport instance

func (Message) Marshal

func (m Message) Marshal() quickfix.Message

Marshal converts Message to a quickfix.Message instance

func (*Message) SetExecID added in v0.2.0

func (m *Message) SetExecID(v string)

func (*Message) SetExecRestatementReason added in v0.2.0

func (m *Message) SetExecRestatementReason(v int)

func (*Message) SetExecType added in v0.2.0

func (m *Message) SetExecType(v string)

func (*Message) SetFutSettDate added in v0.2.0

func (m *Message) SetFutSettDate(v string)

func (*Message) SetInstrument added in v0.2.0

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

func (*Message) SetLastForwardPoints added in v0.2.0

func (m *Message) SetLastForwardPoints(v float64)

func (*Message) SetLastMkt added in v0.2.0

func (m *Message) SetLastMkt(v string)

func (*Message) SetLastPx added in v0.2.0

func (m *Message) SetLastPx(v float64)

func (*Message) SetLastQty added in v0.2.0

func (m *Message) SetLastQty(v float64)

func (*Message) SetLastSpotRate added in v0.2.0

func (m *Message) SetLastSpotRate(v float64)

func (*Message) SetMatchStatus added in v0.2.0

func (m *Message) SetMatchStatus(v string)

func (*Message) SetMatchType added in v0.2.0

func (m *Message) SetMatchType(v string)

func (*Message) SetNoSides added in v0.2.0

func (m *Message) SetNoSides(v []NoSides)

func (*Message) SetOrderQtyData added in v0.2.0

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

func (*Message) SetPreviouslyReported added in v0.2.0

func (m *Message) SetPreviouslyReported(v bool)

func (*Message) SetSecondaryExecID added in v0.2.0

func (m *Message) SetSecondaryExecID(v string)

func (*Message) SetSettlmntTyp added in v0.2.0

func (m *Message) SetSettlmntTyp(v string)

func (*Message) SetTradeDate added in v0.2.0

func (m *Message) SetTradeDate(v string)

func (*Message) SetTradeReportID added in v0.2.0

func (m *Message) SetTradeReportID(v string)

func (*Message) SetTradeReportRefID added in v0.2.0

func (m *Message) SetTradeReportRefID(v string)

func (*Message) SetTradeReportTransType added in v0.2.0

func (m *Message) SetTradeReportTransType(v string)

func (*Message) SetTradeRequestID added in v0.2.0

func (m *Message) SetTradeRequestID(v string)

func (*Message) SetTransactTime added in v0.2.0

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

type NoClearingInstructions

type NoClearingInstructions struct {
	//ClearingInstruction is a non-required field for NoClearingInstructions.
	ClearingInstruction *int `fix:"577"`
}

NoClearingInstructions is a repeating group in NoSides

func NewNoClearingInstructions added in v0.2.0

func NewNoClearingInstructions() *NoClearingInstructions

NewNoClearingInstructions returns an initialized NoClearingInstructions instance

func (*NoClearingInstructions) SetClearingInstruction added in v0.2.0

func (m *NoClearingInstructions) SetClearingInstruction(v int)

type NoContAmts

type NoContAmts struct {
	//ContAmtType is a non-required field for NoContAmts.
	ContAmtType *int `fix:"519"`
	//ContAmtValue is a non-required field for NoContAmts.
	ContAmtValue *float64 `fix:"520"`
	//ContAmtCurr is a non-required field for NoContAmts.
	ContAmtCurr *string `fix:"521"`
}

NoContAmts is a repeating group in NoSides

func NewNoContAmts added in v0.2.0

func NewNoContAmts() *NoContAmts

NewNoContAmts returns an initialized NoContAmts instance

func (*NoContAmts) SetContAmtCurr added in v0.2.0

func (m *NoContAmts) SetContAmtCurr(v string)

func (*NoContAmts) SetContAmtType added in v0.2.0

func (m *NoContAmts) SetContAmtType(v int)

func (*NoContAmts) SetContAmtValue added in v0.2.0

func (m *NoContAmts) SetContAmtValue(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 NoSides

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 NoSides

type NoSides struct {
	//Side is a required field for NoSides.
	Side string `fix:"54"`
	//OrderID is a required field for NoSides.
	OrderID string `fix:"37"`
	//SecondaryOrderID is a non-required field for NoSides.
	SecondaryOrderID *string `fix:"198"`
	//ClOrdID is a non-required field for NoSides.
	ClOrdID *string `fix:"11"`
	//Parties is a non-required component for NoSides.
	Parties *parties.Parties
	//Account is a non-required field for NoSides.
	Account *string `fix:"1"`
	//AccountType is a non-required field for NoSides.
	AccountType *int `fix:"581"`
	//ProcessCode is a non-required field for NoSides.
	ProcessCode *string `fix:"81"`
	//OddLot is a non-required field for NoSides.
	OddLot *bool `fix:"575"`
	//NoClearingInstructions is a non-required field for NoSides.
	NoClearingInstructions []NoClearingInstructions `fix:"576,omitempty"`
	//ClearingFeeIndicator is a non-required field for NoSides.
	ClearingFeeIndicator *string `fix:"635"`
	//TradeInputSource is a non-required field for NoSides.
	TradeInputSource *string `fix:"578"`
	//TradeInputDevice is a non-required field for NoSides.
	TradeInputDevice *string `fix:"579"`
	//Currency is a non-required field for NoSides.
	Currency *string `fix:"15"`
	//ComplianceID is a non-required field for NoSides.
	ComplianceID *string `fix:"376"`
	//SolicitedFlag is a non-required field for NoSides.
	SolicitedFlag *bool `fix:"377"`
	//OrderCapacity is a non-required field for NoSides.
	OrderCapacity *string `fix:"528"`
	//OrderRestrictions is a non-required field for NoSides.
	OrderRestrictions *string `fix:"529"`
	//CustOrderCapacity is a non-required field for NoSides.
	CustOrderCapacity *int `fix:"582"`
	//TransBkdTime is a non-required field for NoSides.
	TransBkdTime *time.Time `fix:"483"`
	//TradingSessionID is a non-required field for NoSides.
	TradingSessionID *string `fix:"336"`
	//TradingSessionSubID is a non-required field for NoSides.
	TradingSessionSubID *string `fix:"625"`
	//CommissionData is a non-required component for NoSides.
	CommissionData *commissiondata.CommissionData
	//GrossTradeAmt is a non-required field for NoSides.
	GrossTradeAmt *float64 `fix:"381"`
	//NumDaysInterest is a non-required field for NoSides.
	NumDaysInterest *int `fix:"157"`
	//ExDate is a non-required field for NoSides.
	ExDate *string `fix:"230"`
	//AccruedInterestRate is a non-required field for NoSides.
	AccruedInterestRate *float64 `fix:"158"`
	//AccruedInterestAmt is a non-required field for NoSides.
	AccruedInterestAmt *float64 `fix:"159"`
	//Concession is a non-required field for NoSides.
	Concession *float64 `fix:"238"`
	//TotalTakedown is a non-required field for NoSides.
	TotalTakedown *float64 `fix:"237"`
	//NetMoney is a non-required field for NoSides.
	NetMoney *float64 `fix:"118"`
	//SettlCurrAmt is a non-required field for NoSides.
	SettlCurrAmt *float64 `fix:"119"`
	//SettlCurrency is a non-required field for NoSides.
	SettlCurrency *string `fix:"120"`
	//SettlCurrFxRate is a non-required field for NoSides.
	SettlCurrFxRate *float64 `fix:"155"`
	//SettlCurrFxRateCalc is a non-required field for NoSides.
	SettlCurrFxRateCalc *string `fix:"156"`
	//PositionEffect is a non-required field for NoSides.
	PositionEffect *string `fix:"77"`
	//Text is a non-required field for NoSides.
	Text *string `fix:"58"`
	//EncodedTextLen is a non-required field for NoSides.
	EncodedTextLen *int `fix:"354"`
	//EncodedText is a non-required field for NoSides.
	EncodedText *string `fix:"355"`
	//MultiLegReportingType is a non-required field for NoSides.
	MultiLegReportingType *string `fix:"442"`
	//NoContAmts is a non-required field for NoSides.
	NoContAmts []NoContAmts `fix:"518,omitempty"`
	//NoMiscFees is a non-required field for NoSides.
	NoMiscFees []NoMiscFees `fix:"136,omitempty"`
}

NoSides is a repeating group in TradeCaptureReport

func NewNoSides added in v0.2.0

func NewNoSides(side string, orderid string) *NoSides

NewNoSides returns an initialized NoSides instance

func (*NoSides) SetAccount added in v0.2.0

func (m *NoSides) SetAccount(v string)

func (*NoSides) SetAccountType added in v0.2.0

func (m *NoSides) SetAccountType(v int)

func (*NoSides) SetAccruedInterestAmt added in v0.2.0

func (m *NoSides) SetAccruedInterestAmt(v float64)

func (*NoSides) SetAccruedInterestRate added in v0.2.0

func (m *NoSides) SetAccruedInterestRate(v float64)

func (*NoSides) SetClOrdID added in v0.2.0

func (m *NoSides) SetClOrdID(v string)

func (*NoSides) SetClearingFeeIndicator added in v0.2.0

func (m *NoSides) SetClearingFeeIndicator(v string)

func (*NoSides) SetCommissionData added in v0.2.0

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

func (*NoSides) SetComplianceID added in v0.2.0

func (m *NoSides) SetComplianceID(v string)

func (*NoSides) SetConcession added in v0.2.0

func (m *NoSides) SetConcession(v float64)

func (*NoSides) SetCurrency added in v0.2.0

func (m *NoSides) SetCurrency(v string)

func (*NoSides) SetCustOrderCapacity added in v0.2.0

func (m *NoSides) SetCustOrderCapacity(v int)

func (*NoSides) SetEncodedText added in v0.2.0

func (m *NoSides) SetEncodedText(v string)

func (*NoSides) SetEncodedTextLen added in v0.2.0

func (m *NoSides) SetEncodedTextLen(v int)

func (*NoSides) SetExDate added in v0.2.0

func (m *NoSides) SetExDate(v string)

func (*NoSides) SetGrossTradeAmt added in v0.2.0

func (m *NoSides) SetGrossTradeAmt(v float64)

func (*NoSides) SetMultiLegReportingType added in v0.2.0

func (m *NoSides) SetMultiLegReportingType(v string)

func (*NoSides) SetNetMoney added in v0.2.0

func (m *NoSides) SetNetMoney(v float64)

func (*NoSides) SetNoClearingInstructions added in v0.2.0

func (m *NoSides) SetNoClearingInstructions(v []NoClearingInstructions)

func (*NoSides) SetNoContAmts added in v0.2.0

func (m *NoSides) SetNoContAmts(v []NoContAmts)

func (*NoSides) SetNoMiscFees added in v0.2.0

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

func (*NoSides) SetNumDaysInterest added in v0.2.0

func (m *NoSides) SetNumDaysInterest(v int)

func (*NoSides) SetOddLot added in v0.2.0

func (m *NoSides) SetOddLot(v bool)

func (*NoSides) SetOrderCapacity added in v0.2.0

func (m *NoSides) SetOrderCapacity(v string)

func (*NoSides) SetOrderID added in v0.2.0

func (m *NoSides) SetOrderID(v string)

func (*NoSides) SetOrderRestrictions added in v0.2.0

func (m *NoSides) SetOrderRestrictions(v string)

func (*NoSides) SetParties added in v0.2.0

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

func (*NoSides) SetPositionEffect added in v0.2.0

func (m *NoSides) SetPositionEffect(v string)

func (*NoSides) SetProcessCode added in v0.2.0

func (m *NoSides) SetProcessCode(v string)

func (*NoSides) SetSecondaryOrderID added in v0.2.0

func (m *NoSides) SetSecondaryOrderID(v string)

func (*NoSides) SetSettlCurrAmt added in v0.2.0

func (m *NoSides) SetSettlCurrAmt(v float64)

func (*NoSides) SetSettlCurrFxRate added in v0.2.0

func (m *NoSides) SetSettlCurrFxRate(v float64)

func (*NoSides) SetSettlCurrFxRateCalc added in v0.2.0

func (m *NoSides) SetSettlCurrFxRateCalc(v string)

func (*NoSides) SetSettlCurrency added in v0.2.0

func (m *NoSides) SetSettlCurrency(v string)

func (*NoSides) SetSide added in v0.2.0

func (m *NoSides) SetSide(v string)

func (*NoSides) SetSolicitedFlag added in v0.2.0

func (m *NoSides) SetSolicitedFlag(v bool)

func (*NoSides) SetText added in v0.2.0

func (m *NoSides) SetText(v string)

func (*NoSides) SetTotalTakedown added in v0.2.0

func (m *NoSides) SetTotalTakedown(v float64)

func (*NoSides) SetTradeInputDevice added in v0.2.0

func (m *NoSides) SetTradeInputDevice(v string)

func (*NoSides) SetTradeInputSource added in v0.2.0

func (m *NoSides) SetTradeInputSource(v string)

func (*NoSides) SetTradingSessionID added in v0.2.0

func (m *NoSides) SetTradingSessionID(v string)

func (*NoSides) SetTradingSessionSubID added in v0.2.0

func (m *NoSides) SetTradingSessionSubID(v string)

func (*NoSides) SetTransBkdTime added in v0.2.0

func (m *NoSides) SetTransBkdTime(v time.Time)

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