email

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

Documentation

Overview

Package email msg type = C.

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:"C"`
	fix40.Header
	//EmailType is a required field for Email.
	EmailType string `fix:"94"`
	//OrigTime is a non-required field for Email.
	OrigTime *time.Time `fix:"42"`
	//RelatdSym is a non-required field for Email.
	RelatdSym *string `fix:"46"`
	//OrderID is a non-required field for Email.
	OrderID *string `fix:"37"`
	//ClOrdID is a non-required field for Email.
	ClOrdID *string `fix:"11"`
	//LinesOfText is a required field for Email.
	LinesOfText int `fix:"33"`
	//Text is a required field for Email.
	Text string `fix:"58"`
	//RawDataLength is a non-required field for Email.
	RawDataLength *int `fix:"95"`
	//RawData is a non-required field for Email.
	RawData *string `fix:"96"`
	fix40.Trailer
}

Message is a Email FIX Message

func New added in v0.2.0

func New(emailtype string, linesoftext int, text string) *Message

New returns an initialized Email instance

func (Message) Marshal

func (m Message) Marshal() quickfix.Message

Marshal converts Message to a quickfix.Message instance

func (*Message) SetClOrdID added in v0.2.0

func (m *Message) SetClOrdID(v string)

func (*Message) SetEmailType added in v0.2.0

func (m *Message) SetEmailType(v string)

func (*Message) SetLinesOfText added in v0.2.0

func (m *Message) SetLinesOfText(v int)

func (*Message) SetOrderID added in v0.2.0

func (m *Message) SetOrderID(v string)

func (*Message) SetOrigTime added in v0.2.0

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

func (*Message) SetRawData added in v0.2.0

func (m *Message) SetRawData(v string)

func (*Message) SetRawDataLength added in v0.2.0

func (m *Message) SetRawDataLength(v int)

func (*Message) SetRelatdSym added in v0.2.0

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