dontknowtrade

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 dontknowtrade msg type = Q.

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:"Q"`
	fix40.Header
	//OrderID is a non-required field for DontKnowTrade.
	OrderID *string `fix:"37"`
	//ExecID is a non-required field for DontKnowTrade.
	ExecID *int `fix:"17"`
	//DKReason is a required field for DontKnowTrade.
	DKReason string `fix:"127"`
	//Symbol is a required field for DontKnowTrade.
	Symbol string `fix:"55"`
	//Side is a required field for DontKnowTrade.
	Side string `fix:"54"`
	//OrderQty is a required field for DontKnowTrade.
	OrderQty int `fix:"38"`
	//LastShares is a required field for DontKnowTrade.
	LastShares int `fix:"32"`
	//LastPx is a required field for DontKnowTrade.
	LastPx float64 `fix:"31"`
	//Text is a non-required field for DontKnowTrade.
	Text *string `fix:"58"`
	fix40.Trailer
}

Message is a DontKnowTrade FIX Message

func New added in v0.2.0

func New(dkreason string, symbol string, side string, orderqty int, lastshares int, lastpx float64) *Message

New returns an initialized DontKnowTrade instance

func (Message) Marshal

func (m Message) Marshal() quickfix.Message

Marshal converts Message to a quickfix.Message instance

func (*Message) SetDKReason added in v0.2.0

func (m *Message) SetDKReason(v string)

func (*Message) SetExecID added in v0.2.0

func (m *Message) SetExecID(v int)

func (*Message) SetLastPx added in v0.2.0

func (m *Message) SetLastPx(v float64)

func (*Message) SetLastShares added in v0.2.0

func (m *Message) SetLastShares(v int)

func (*Message) SetOrderID added in v0.2.0

func (m *Message) SetOrderID(v string)

func (*Message) SetOrderQty added in v0.2.0

func (m *Message) SetOrderQty(v int)

func (*Message) SetSide added in v0.2.0

func (m *Message) SetSide(v string)

func (*Message) SetSymbol added in v0.2.0

func (m *Message) SetSymbol(v string)

func (*Message) SetText added in v0.2.0

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