newordersingle

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 newordersingle msg type = D.

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:"D"`
	fix41.Header
	//ClOrdID is a required field for NewOrderSingle.
	ClOrdID string `fix:"11"`
	//ClientID is a non-required field for NewOrderSingle.
	ClientID *string `fix:"109"`
	//ExecBroker is a non-required field for NewOrderSingle.
	ExecBroker *string `fix:"76"`
	//Account is a non-required field for NewOrderSingle.
	Account *string `fix:"1"`
	//SettlmntTyp is a non-required field for NewOrderSingle.
	SettlmntTyp *string `fix:"63"`
	//FutSettDate is a non-required field for NewOrderSingle.
	FutSettDate *string `fix:"64"`
	//HandlInst is a required field for NewOrderSingle.
	HandlInst string `fix:"21"`
	//ExecInst is a non-required field for NewOrderSingle.
	ExecInst *string `fix:"18"`
	//MinQty is a non-required field for NewOrderSingle.
	MinQty *int `fix:"110"`
	//MaxFloor is a non-required field for NewOrderSingle.
	MaxFloor *int `fix:"111"`
	//ExDestination is a non-required field for NewOrderSingle.
	ExDestination *string `fix:"100"`
	//ProcessCode is a non-required field for NewOrderSingle.
	ProcessCode *string `fix:"81"`
	//Symbol is a required field for NewOrderSingle.
	Symbol string `fix:"55"`
	//SymbolSfx is a non-required field for NewOrderSingle.
	SymbolSfx *string `fix:"65"`
	//SecurityID is a non-required field for NewOrderSingle.
	SecurityID *string `fix:"48"`
	//IDSource is a non-required field for NewOrderSingle.
	IDSource *string `fix:"22"`
	//SecurityType is a non-required field for NewOrderSingle.
	SecurityType *string `fix:"167"`
	//MaturityMonthYear is a non-required field for NewOrderSingle.
	MaturityMonthYear *string `fix:"200"`
	//MaturityDay is a non-required field for NewOrderSingle.
	MaturityDay *int `fix:"205"`
	//PutOrCall is a non-required field for NewOrderSingle.
	PutOrCall *int `fix:"201"`
	//StrikePrice is a non-required field for NewOrderSingle.
	StrikePrice *float64 `fix:"202"`
	//OptAttribute is a non-required field for NewOrderSingle.
	OptAttribute *string `fix:"206"`
	//SecurityExchange is a non-required field for NewOrderSingle.
	SecurityExchange *string `fix:"207"`
	//Issuer is a non-required field for NewOrderSingle.
	Issuer *string `fix:"106"`
	//SecurityDesc is a non-required field for NewOrderSingle.
	SecurityDesc *string `fix:"107"`
	//PrevClosePx is a non-required field for NewOrderSingle.
	PrevClosePx *float64 `fix:"140"`
	//Side is a required field for NewOrderSingle.
	Side string `fix:"54"`
	//LocateReqd is a non-required field for NewOrderSingle.
	LocateReqd *string `fix:"114"`
	//OrderQty is a non-required field for NewOrderSingle.
	OrderQty *int `fix:"38"`
	//CashOrderQty is a non-required field for NewOrderSingle.
	CashOrderQty *float64 `fix:"152"`
	//OrdType is a required field for NewOrderSingle.
	OrdType string `fix:"40"`
	//Price is a non-required field for NewOrderSingle.
	Price *float64 `fix:"44"`
	//StopPx is a non-required field for NewOrderSingle.
	StopPx *float64 `fix:"99"`
	//Currency is a non-required field for NewOrderSingle.
	Currency *string `fix:"15"`
	//IOIid is a non-required field for NewOrderSingle.
	IOIid *string `fix:"23"`
	//QuoteID is a non-required field for NewOrderSingle.
	QuoteID *string `fix:"117"`
	//TimeInForce is a non-required field for NewOrderSingle.
	TimeInForce *string `fix:"59"`
	//ExpireTime is a non-required field for NewOrderSingle.
	ExpireTime *time.Time `fix:"126"`
	//Commission is a non-required field for NewOrderSingle.
	Commission *float64 `fix:"12"`
	//CommType is a non-required field for NewOrderSingle.
	CommType *string `fix:"13"`
	//Rule80A is a non-required field for NewOrderSingle.
	Rule80A *string `fix:"47"`
	//ForexReq is a non-required field for NewOrderSingle.
	ForexReq *string `fix:"121"`
	//SettlCurrency is a non-required field for NewOrderSingle.
	SettlCurrency *string `fix:"120"`
	//Text is a non-required field for NewOrderSingle.
	Text *string `fix:"58"`
	//FutSettDate2 is a non-required field for NewOrderSingle.
	FutSettDate2 *string `fix:"193"`
	//OrderQty2 is a non-required field for NewOrderSingle.
	OrderQty2 *float64 `fix:"192"`
	//OpenClose is a non-required field for NewOrderSingle.
	OpenClose *string `fix:"77"`
	//CoveredOrUncovered is a non-required field for NewOrderSingle.
	CoveredOrUncovered *int `fix:"203"`
	//CustomerOrFirm is a non-required field for NewOrderSingle.
	CustomerOrFirm *int `fix:"204"`
	//MaxShow is a non-required field for NewOrderSingle.
	MaxShow *int `fix:"210"`
	//PegDifference is a non-required field for NewOrderSingle.
	PegDifference *float64 `fix:"211"`
	fix41.Trailer
}

Message is a NewOrderSingle FIX Message

func New added in v0.2.0

func New(clordid string, handlinst string, symbol string, side string, ordtype string) *Message

New returns an initialized NewOrderSingle instance

func (Message) Marshal

func (m Message) Marshal() quickfix.Message

Marshal converts Message to a quickfix.Message instance

func (*Message) SetAccount added in v0.2.0

func (m *Message) SetAccount(v string)

func (*Message) SetCashOrderQty added in v0.2.0

func (m *Message) SetCashOrderQty(v float64)

func (*Message) SetClOrdID added in v0.2.0

func (m *Message) SetClOrdID(v string)

func (*Message) SetClientID added in v0.2.0

func (m *Message) SetClientID(v string)

func (*Message) SetCommType added in v0.2.0

func (m *Message) SetCommType(v string)

func (*Message) SetCommission added in v0.2.0

func (m *Message) SetCommission(v float64)

func (*Message) SetCoveredOrUncovered added in v0.2.0

func (m *Message) SetCoveredOrUncovered(v int)

func (*Message) SetCurrency added in v0.2.0

func (m *Message) SetCurrency(v string)

func (*Message) SetCustomerOrFirm added in v0.2.0

func (m *Message) SetCustomerOrFirm(v int)

func (*Message) SetExDestination added in v0.2.0

func (m *Message) SetExDestination(v string)

func (*Message) SetExecBroker added in v0.2.0

func (m *Message) SetExecBroker(v string)

func (*Message) SetExecInst added in v0.2.0

func (m *Message) SetExecInst(v string)

func (*Message) SetExpireTime added in v0.2.0

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

func (*Message) SetForexReq added in v0.2.0

func (m *Message) SetForexReq(v string)

func (*Message) SetFutSettDate added in v0.2.0

func (m *Message) SetFutSettDate(v string)

func (*Message) SetFutSettDate2 added in v0.2.0

func (m *Message) SetFutSettDate2(v string)

func (*Message) SetHandlInst added in v0.2.0

func (m *Message) SetHandlInst(v string)

func (*Message) SetIDSource added in v0.2.0

func (m *Message) SetIDSource(v string)

func (*Message) SetIOIid added in v0.2.0

func (m *Message) SetIOIid(v string)

func (*Message) SetIssuer added in v0.2.0

func (m *Message) SetIssuer(v string)

func (*Message) SetLocateReqd added in v0.2.0

func (m *Message) SetLocateReqd(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) SetMaxFloor added in v0.2.0

func (m *Message) SetMaxFloor(v int)

func (*Message) SetMaxShow added in v0.2.0

func (m *Message) SetMaxShow(v int)

func (*Message) SetMinQty added in v0.2.0

func (m *Message) SetMinQty(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) SetOrdType added in v0.2.0

func (m *Message) SetOrdType(v string)

func (*Message) SetOrderQty added in v0.2.0

func (m *Message) SetOrderQty(v int)

func (*Message) SetOrderQty2 added in v0.2.0

func (m *Message) SetOrderQty2(v float64)

func (*Message) SetPegDifference added in v0.2.0

func (m *Message) SetPegDifference(v float64)

func (*Message) SetPrevClosePx added in v0.2.0

func (m *Message) SetPrevClosePx(v float64)

func (*Message) SetPrice added in v0.2.0

func (m *Message) SetPrice(v float64)

func (*Message) SetProcessCode added in v0.2.0

func (m *Message) SetProcessCode(v string)

func (*Message) SetPutOrCall added in v0.2.0

func (m *Message) SetPutOrCall(v int)

func (*Message) SetQuoteID added in v0.2.0

func (m *Message) SetQuoteID(v string)

func (*Message) SetRule80A added in v0.2.0

func (m *Message) SetRule80A(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) SetSettlCurrency added in v0.2.0

func (m *Message) SetSettlCurrency(v string)

func (*Message) SetSettlmntTyp added in v0.2.0

func (m *Message) SetSettlmntTyp(v string)

func (*Message) SetSide added in v0.2.0

func (m *Message) SetSide(v string)

func (*Message) SetStopPx added in v0.2.0

func (m *Message) SetStopPx(v float64)

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

func (m *Message) SetTimeInForce(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