email

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 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

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

func (m *Message) SetClOrdID(v string)

func (*Message) SetEmailType

func (m *Message) SetEmailType(v string)

func (*Message) SetLinesOfText

func (m *Message) SetLinesOfText(v int)

func (*Message) SetOrderID

func (m *Message) SetOrderID(v string)

func (*Message) SetOrigTime

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

func (*Message) SetRawData

func (m *Message) SetRawData(v string)

func (*Message) SetRawDataLength

func (m *Message) SetRawDataLength(v int)

func (*Message) SetRelatdSym

func (m *Message) SetRelatdSym(v string)

func (*Message) SetText

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