news

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: 11 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"`
	//ApplicationSequenceControl is a non-required component for News.
	ApplicationSequenceControl *applicationsequencecontrol.ApplicationSequenceControl
	//NewsID is a non-required field for News.
	NewsID *string `fix:"1472"`
	//NewsRefGrp is a non-required component for News.
	NewsRefGrp *newsrefgrp.NewsRefGrp
	//NewsCategory is a non-required field for News.
	NewsCategory *int `fix:"1473"`
	//LanguageCode is a non-required field for News.
	LanguageCode *string `fix:"1474"`
	//MarketID is a non-required field for News.
	MarketID *string `fix:"1301"`
	//MarketSegmentID is a non-required field for News.
	MarketSegmentID *string `fix:"1300"`
	fixt11.Trailer
}

Message is a News FIX Message

func New added in v0.2.0

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

func (m *Message) SetApplicationSequenceControl(v applicationsequencecontrol.ApplicationSequenceControl)

func (*Message) SetEncodedHeadline added in v0.2.0

func (m *Message) SetEncodedHeadline(v string)

func (*Message) SetEncodedHeadlineLen added in v0.2.0

func (m *Message) SetEncodedHeadlineLen(v int)

func (*Message) SetHeadline added in v0.2.0

func (m *Message) SetHeadline(v string)

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

func (m *Message) SetLanguageCode(v string)

func (*Message) SetLinesOfTextGrp added in v0.2.0

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

func (*Message) SetMarketID added in v0.2.0

func (m *Message) SetMarketID(v string)

func (*Message) SetMarketSegmentID added in v0.2.0

func (m *Message) SetMarketSegmentID(v string)

func (*Message) SetNewsCategory added in v0.2.0

func (m *Message) SetNewsCategory(v int)

func (*Message) SetNewsID added in v0.2.0

func (m *Message) SetNewsID(v string)

func (*Message) SetNewsRefGrp added in v0.2.0

func (m *Message) SetNewsRefGrp(v newsrefgrp.NewsRefGrp)

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 (m *Message) SetURLLink(v string)

func (*Message) SetUndInstrmtGrp added in v0.2.0

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

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