Documentation ¶
Overview ¶
Package fix declares FIX DataTypes
Index ¶
- Constants
- func Atoi(d []byte) (int, error)
- func IsAdminMessageType(m string) bool
- func ParseUInt(d []byte) (n int, err error)
- type AmtValue
- type BooleanField
- type BooleanValue
- type CharValue
- type CountryValue
- type CurrencyValue
- type DataValue
- type DayOfMonthValue
- type ExchangeValue
- type FloatField
- type FloatValue
- type IntField
- type IntValue
- type LanguageValue
- type LengthValue
- type LocalMktDateValue
- type MonthYearValue
- type MultipleCharValue
- type MultipleStringValue
- type NumInGroupValue
- type PercentageValue
- type PriceOffsetValue
- type PriceValue
- type QtyValue
- type SeqNumValue
- type StringField
- type StringValue
- type TZTimeOnlyValue
- type TZTimestampValue
- type Tag
- type UTCDateOnlyValue
- type UTCTimeOnlyValue
- type UTCTimestampField
- type UTCTimestampValue
- type XMLDataValue
Constants ¶
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 ¶
Atoi is similar to the function in strconv, but is tuned for ints appearing in FIX field types.
func IsAdminMessageType ¶
IsAdminMessageType returns true if the message type is a sesion level message.
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
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
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 ¶
type IntValue ¶
type IntValue struct {
Value int
}
IntValue is a Container for int, implements FieldValue
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
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 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
type UTCTimestampValue ¶
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 }
Source Files ¶
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. |