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: 9 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"`
	fixt11.Header
	//EmailThreadID is a required field for Email.
	EmailThreadID string `fix:"164"`
	//EmailType is a required field for Email.
	EmailType string `fix:"94"`
	//OrigTime is a non-required field for Email.
	OrigTime *time.Time `fix:"42"`
	//Subject is a required field for Email.
	Subject string `fix:"147"`
	//EncodedSubjectLen is a non-required field for Email.
	EncodedSubjectLen *int `fix:"356"`
	//EncodedSubject is a non-required field for Email.
	EncodedSubject *string `fix:"357"`
	//RoutingGrp is a non-required component for Email.
	RoutingGrp *routinggrp.RoutingGrp
	//InstrmtGrp is a non-required component for Email.
	InstrmtGrp *instrmtgrp.InstrmtGrp
	//UndInstrmtGrp is a non-required component for Email.
	UndInstrmtGrp *undinstrmtgrp.UndInstrmtGrp
	//InstrmtLegGrp is a non-required component for Email.
	InstrmtLegGrp *instrmtleggrp.InstrmtLegGrp
	//OrderID is a non-required field for Email.
	OrderID *string `fix:"37"`
	//ClOrdID is a non-required field for Email.
	ClOrdID *string `fix:"11"`
	//LinesOfTextGrp is a required component for Email.
	linesoftextgrp.LinesOfTextGrp
	//RawDataLength is a non-required field for Email.
	RawDataLength *int `fix:"95"`
	//RawData is a non-required field for Email.
	RawData *string `fix:"96"`
	fixt11.Trailer
}

Message is a Email FIX Message

func New added in v0.2.0

func New(emailthreadid string, emailtype string, subject string, linesoftextgrp linesoftextgrp.LinesOfTextGrp) *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) SetEmailThreadID added in v0.2.0

func (m *Message) SetEmailThreadID(v string)

func (*Message) SetEmailType added in v0.2.0

func (m *Message) SetEmailType(v string)

func (*Message) SetEncodedSubject added in v0.2.0

func (m *Message) SetEncodedSubject(v string)

func (*Message) SetEncodedSubjectLen added in v0.2.0

func (m *Message) SetEncodedSubjectLen(v int)

func (*Message) SetInstrmtGrp added in v0.2.0

func (m *Message) SetInstrmtGrp(v instrmtgrp.InstrmtGrp)

func (*Message) SetInstrmtLegGrp added in v0.2.0

func (m *Message) SetInstrmtLegGrp(v instrmtleggrp.InstrmtLegGrp)

func (*Message) SetLinesOfTextGrp added in v0.2.0

func (m *Message) SetLinesOfTextGrp(v linesoftextgrp.LinesOfTextGrp)

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

func (m *Message) SetRoutingGrp(v routinggrp.RoutingGrp)

func (*Message) SetSubject added in v0.2.0

func (m *Message) SetSubject(v string)

func (*Message) SetUndInstrmtGrp added in v0.2.0

func (m *Message) SetUndInstrmtGrp(v undinstrmtgrp.UndInstrmtGrp)

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