fix

package
v0.0.0-...-c8d12df Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2014 License: Apache-1.1 Imports: 5 Imported by: 0

Documentation

Overview

Package fix declares FIX DataTypes

Index

Constants

View Source
const (
	BeginString_FIX40  = "FIX.4.0"
	BeginString_FIX41  = "FIX.4.1"
	BeginString_FIX42  = "FIX.4.2"
	BeginString_FIX43  = "FIX.4.3"
	BeginString_FIX44  = "FIX.4.4"
	BeginString_FIX50  = "FIX.5.0"
	BeginString_FIXT11 = "FIXT.1.1"
)

Variables

This section is empty.

Functions

func Atoi

func Atoi(d []byte) (int, error)

Atoi is similar to the function in strconv, but is tuned for ints appearing in FIX field types.

func IsAdminMessageType

func IsAdminMessageType(m string) bool

IsAdminMessageType returns true if the message type is a sesion level message.

func ParseUInt

func ParseUInt(d []byte) (n int, err error)

ParseUInt is similar to the function in strconv, but is tuned for ints appearing in FIX field types.

Types

type AmtValue

type AmtValue struct{ FloatValue }

type BooleanField

type BooleanField struct {
	BooleanValue
	// contains filtered or unexported fields
}

BooleanField is a generic boolean Field Type, Implements Field.

func NewBooleanField

func NewBooleanField(tag Tag, value bool) *BooleanField

func (BooleanField) Tag

func (c BooleanField) Tag() Tag

type BooleanValue

type BooleanValue struct {
	Value bool
}

BooleanValue is a container for bool, implements FieldValue.

func (*BooleanValue) Read

func (f *BooleanValue) Read(bytes []byte) error

func (BooleanValue) Write

func (f BooleanValue) Write() []byte

type CharValue

type CharValue struct{ StringValue }

type CountryValue

type CountryValue struct{ StringValue }

type CurrencyValue

type CurrencyValue struct{ StringValue }

type DataValue

type DataValue struct{ StringValue }

type DayOfMonthValue

type DayOfMonthValue struct{ IntValue }

type ExchangeValue

type ExchangeValue struct{ StringValue }

type FloatField

type FloatField struct {
	FloatValue
	// contains filtered or unexported fields
}

func NewFloatField

func NewFloatField(tag Tag, value float64) *FloatField

func (FloatField) Tag

func (c FloatField) Tag() Tag

type FloatValue

type FloatValue struct {
	Value float64
}

FloatValue is a Container for float, implements FieldValue

func (*FloatValue) Read

func (f *FloatValue) Read(bytes []byte) (err error)

func (FloatValue) Write

func (f FloatValue) Write() []byte

type IntField

type IntField struct {
	IntValue
	// contains filtered or unexported fields
}

IntField is a generic int Field Type, implements Field

func NewIntField

func NewIntField(tag Tag, value int) *IntField

func (IntField) Tag

func (c IntField) Tag() Tag

type IntValue

type IntValue struct {
	Value int
}

IntValue is a Container for int, implements FieldValue

func (*IntValue) Read

func (f *IntValue) Read(bytes []byte) (err error)

func (IntValue) Write

func (f IntValue) Write() []byte

type LanguageValue

type LanguageValue struct{ StringValue }

type LengthValue

type LengthValue struct{ IntValue }

type LocalMktDateValue

type LocalMktDateValue struct{ StringValue }

type MonthYearValue

type MonthYearValue struct{ StringValue }

type MultipleCharValue

type MultipleCharValue struct{ StringValue }

type MultipleStringValue

type MultipleStringValue struct{ StringValue }

type NumInGroupValue

type NumInGroupValue struct{ IntValue }

type PercentageValue

type PercentageValue struct{ FloatValue }

type PriceOffsetValue

type PriceOffsetValue struct{ FloatValue }

type PriceValue

type PriceValue struct{ FloatValue }

type QtyValue

type QtyValue struct{ FloatValue }

type SeqNumValue

type SeqNumValue struct{ IntValue }

type StringField

type StringField struct {
	StringValue
	// contains filtered or unexported fields
}

StringField is a generic string Field Type. Implements Field.

func NewStringField

func NewStringField(tag Tag, value string) *StringField

func (StringField) Tag

func (c StringField) Tag() Tag

type StringValue

type StringValue struct {
	Value string
}

StringValue is a container for string, implements FieldValue.

func (*StringValue) Read

func (f *StringValue) Read(bytes []byte) error

func (StringValue) Write

func (f StringValue) Write() []byte

type TZTimeOnlyValue

type TZTimeOnlyValue struct{ StringValue }

type TZTimestampValue

type TZTimestampValue struct{ StringValue }

type Tag

type Tag int

Tag is a typed int representing a FIX tag

type UTCDateOnlyValue

type UTCDateOnlyValue struct{ StringValue }

type UTCTimeOnlyValue

type UTCTimeOnlyValue struct{ StringValue }

type UTCTimestampField

type UTCTimestampField struct {
	UTCTimestampValue
	// contains filtered or unexported fields
}

UTCTimestampField is a generic utctimestamp Field Type. Implements Field

func NewUTCTimestampField

func NewUTCTimestampField(tag Tag, value time.Time) *UTCTimestampField

func NewUTCTimestampFieldNoMillis

func NewUTCTimestampFieldNoMillis(tag Tag, value time.Time) *UTCTimestampField

func (UTCTimestampField) Tag

func (c UTCTimestampField) Tag() Tag

type UTCTimestampValue

type UTCTimestampValue struct {
	Value    time.Time
	NoMillis bool
}

UTCTimestampValue is a Container for utctimestamp, implements FieldValue

func (*UTCTimestampValue) Read

func (f *UTCTimestampValue) Read(bytes []byte) (err error)

func (UTCTimestampValue) Write

func (f UTCTimestampValue) Write() []byte

type XMLDataValue

type XMLDataValue struct{ StringValue }

Directories

Path Synopsis
Package enum declares standard FIX enum values.
Package enum declares standard FIX enum values.
Package field declares standard FIX fields.
Package field declares standard FIX fields.
Package tag declares standard FIX tags.
Package tag declares standard FIX tags.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL