news

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 news msg type = B.

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:"B"`
	fix40.Header
	//OrigTime is a non-required field for News.
	OrigTime *time.Time `fix:"42"`
	//Urgency is a non-required field for News.
	Urgency *string `fix:"61"`
	//RelatdSym is a non-required field for News.
	RelatdSym *string `fix:"46"`
	//LinesOfText is a required field for News.
	LinesOfText int `fix:"33"`
	//Text is a required field for News.
	Text string `fix:"58"`
	//RawDataLength is a non-required field for News.
	RawDataLength *int `fix:"95"`
	//RawData is a non-required field for News.
	RawData *string `fix:"96"`
	fix40.Trailer
}

Message is a News FIX Message

func New added in v0.2.0

func New(linesoftext int, text string) *Message

New returns an initialized News instance

func (Message) Marshal

func (m Message) Marshal() quickfix.Message

Marshal converts Message to a quickfix.Message instance

func (*Message) SetLinesOfText added in v0.2.0

func (m *Message) SetLinesOfText(v int)

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)

func (*Message) SetUrgency added in v0.2.0

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