liststatus

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

Documentation

Overview

Package liststatus msg type = N.

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:"N"`
	fix40.Header
	//ListID is a required field for ListStatus.
	ListID string `fix:"66"`
	//WaveNo is a non-required field for ListStatus.
	WaveNo *string `fix:"105"`
	//NoRpts is a required field for ListStatus.
	NoRpts int `fix:"82"`
	//RptSeq is a required field for ListStatus.
	RptSeq int `fix:"83"`
	//NoOrders is a required field for ListStatus.
	NoOrders []NoOrders `fix:"73"`
	fix40.Trailer
}

Message is a ListStatus FIX Message

func New

func New(listid string, norpts int, rptseq int, noorders []NoOrders) *Message

New returns an initialized ListStatus instance

func (Message) Marshal

func (m Message) Marshal() quickfix.Message

Marshal converts Message to a quickfix.Message instance

func (*Message) SetListID

func (m *Message) SetListID(v string)

func (*Message) SetNoOrders

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

func (*Message) SetNoRpts

func (m *Message) SetNoRpts(v int)

func (*Message) SetRptSeq

func (m *Message) SetRptSeq(v int)

func (*Message) SetWaveNo

func (m *Message) SetWaveNo(v string)

type NoOrders

type NoOrders struct {
	//ClOrdID is a required field for NoOrders.
	ClOrdID string `fix:"11"`
	//CumQty is a required field for NoOrders.
	CumQty int `fix:"14"`
	//CxlQty is a required field for NoOrders.
	CxlQty int `fix:"84"`
	//AvgPx is a required field for NoOrders.
	AvgPx float64 `fix:"6"`
}

NoOrders is a repeating group in ListStatus

func NewNoOrders

func NewNoOrders(clordid string, cumqty int, cxlqty int, avgpx float64) *NoOrders

NewNoOrders returns an initialized NoOrders instance

func (*NoOrders) SetAvgPx

func (m *NoOrders) SetAvgPx(v float64)

func (*NoOrders) SetClOrdID

func (m *NoOrders) SetClOrdID(v string)

func (*NoOrders) SetCumQty

func (m *NoOrders) SetCumQty(v int)

func (*NoOrders) SetCxlQty

func (m *NoOrders) SetCxlQty(v int)

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