advertisement

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: 7 Imported by: 0

Documentation

Overview

Package advertisement msg type = 7.

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:"7"`
	fixt11.Header
	//AdvId is a required field for Advertisement.
	AdvId string `fix:"2"`
	//AdvTransType is a required field for Advertisement.
	AdvTransType string `fix:"5"`
	//AdvRefID is a non-required field for Advertisement.
	AdvRefID *string `fix:"3"`
	//Instrument is a required component for Advertisement.
	instrument.Instrument
	//InstrmtLegGrp is a non-required component for Advertisement.
	InstrmtLegGrp *instrmtleggrp.InstrmtLegGrp
	//UndInstrmtGrp is a non-required component for Advertisement.
	UndInstrmtGrp *undinstrmtgrp.UndInstrmtGrp
	//AdvSide is a required field for Advertisement.
	AdvSide string `fix:"4"`
	//Quantity is a required field for Advertisement.
	Quantity float64 `fix:"53"`
	//QtyType is a non-required field for Advertisement.
	QtyType *int `fix:"854"`
	//Price is a non-required field for Advertisement.
	Price *float64 `fix:"44"`
	//Currency is a non-required field for Advertisement.
	Currency *string `fix:"15"`
	//TradeDate is a non-required field for Advertisement.
	TradeDate *string `fix:"75"`
	//TransactTime is a non-required field for Advertisement.
	TransactTime *time.Time `fix:"60"`
	//Text is a non-required field for Advertisement.
	Text *string `fix:"58"`
	//EncodedTextLen is a non-required field for Advertisement.
	EncodedTextLen *int `fix:"354"`
	//EncodedText is a non-required field for Advertisement.
	EncodedText *string `fix:"355"`
	//URLLink is a non-required field for Advertisement.
	URLLink *string `fix:"149"`
	//LastMkt is a non-required field for Advertisement.
	LastMkt *string `fix:"30"`
	//TradingSessionID is a non-required field for Advertisement.
	TradingSessionID *string `fix:"336"`
	//TradingSessionSubID is a non-required field for Advertisement.
	TradingSessionSubID *string `fix:"625"`
	fixt11.Trailer
}

Message is a Advertisement FIX Message

func New

func New(advid string, advtranstype string, instrument instrument.Instrument, advside string, quantity float64) *Message

New returns an initialized Advertisement instance

func (Message) Marshal

func (m Message) Marshal() quickfix.Message

Marshal converts Message to a quickfix.Message instance

func (*Message) SetAdvId

func (m *Message) SetAdvId(v string)

func (*Message) SetAdvRefID

func (m *Message) SetAdvRefID(v string)

func (*Message) SetAdvSide

func (m *Message) SetAdvSide(v string)

func (*Message) SetAdvTransType

func (m *Message) SetAdvTransType(v string)

func (*Message) SetCurrency

func (m *Message) SetCurrency(v string)

func (*Message) SetEncodedText

func (m *Message) SetEncodedText(v string)

func (*Message) SetEncodedTextLen

func (m *Message) SetEncodedTextLen(v int)

func (*Message) SetInstrmtLegGrp

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

func (*Message) SetInstrument

func (m *Message) SetInstrument(v instrument.Instrument)

func (*Message) SetLastMkt

func (m *Message) SetLastMkt(v string)

func (*Message) SetPrice

func (m *Message) SetPrice(v float64)

func (*Message) SetQtyType

func (m *Message) SetQtyType(v int)

func (*Message) SetQuantity

func (m *Message) SetQuantity(v float64)

func (*Message) SetText

func (m *Message) SetText(v string)

func (*Message) SetTradeDate

func (m *Message) SetTradeDate(v string)

func (*Message) SetTradingSessionID

func (m *Message) SetTradingSessionID(v string)

func (*Message) SetTradingSessionSubID

func (m *Message) SetTradingSessionSubID(v string)

func (*Message) SetTransactTime

func (m *Message) SetTransactTime(v time.Time)
func (m *Message) SetURLLink(v string)

func (*Message) SetUndInstrmtGrp

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