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: 9 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"`
	fixt11.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"`
	//Headline is a required field for News.
	Headline string `fix:"148"`
	//EncodedHeadlineLen is a non-required field for News.
	EncodedHeadlineLen *int `fix:"358"`
	//EncodedHeadline is a non-required field for News.
	EncodedHeadline *string `fix:"359"`
	//RoutingGrp is a non-required component for News.
	RoutingGrp *routinggrp.RoutingGrp
	//InstrmtGrp is a non-required component for News.
	InstrmtGrp *instrmtgrp.InstrmtGrp
	//InstrmtLegGrp is a non-required component for News.
	InstrmtLegGrp *instrmtleggrp.InstrmtLegGrp
	//UndInstrmtGrp is a non-required component for News.
	UndInstrmtGrp *undinstrmtgrp.UndInstrmtGrp
	//LinesOfTextGrp is a required component for News.
	linesoftextgrp.LinesOfTextGrp
	//URLLink is a non-required field for News.
	URLLink *string `fix:"149"`
	//RawDataLength is a non-required field for News.
	RawDataLength *int `fix:"95"`
	//RawData is a non-required field for News.
	RawData *string `fix:"96"`
	fixt11.Trailer
}

Message is a News FIX Message

func New

func New(headline string, linesoftextgrp linesoftextgrp.LinesOfTextGrp) *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) SetEncodedHeadline

func (m *Message) SetEncodedHeadline(v string)

func (*Message) SetEncodedHeadlineLen

func (m *Message) SetEncodedHeadlineLen(v int)

func (*Message) SetHeadline

func (m *Message) SetHeadline(v string)

func (*Message) SetInstrmtGrp

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

func (*Message) SetInstrmtLegGrp

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

func (*Message) SetLinesOfTextGrp

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

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

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

func (*Message) SetUndInstrmtGrp

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

func (*Message) SetUrgency

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