Documentation
¶
Overview ¶
Package datadictionary provides support for parsing and organizing FIX Data Dictionaries
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataDictionary ¶
type DataDictionary struct {
FIXType string
Major int
Minor int
ServicePack int
FieldTypeByTag map[int]*FieldType
FieldTypeByName map[string]*FieldType
Messages map[string]*MessageDef
Components map[string]*Component
Header *MessageDef
Trailer *MessageDef
}
DataDictionary models FIX messages, components, and fields.
func Parse ¶
func Parse(path string) (*DataDictionary, error)
Parse loads and and build a datadictionary instance from an xml file.
type FieldDef ¶
FieldDef models a field or component belonging to a message.
func (FieldDef) IsComponent ¶
type FieldType ¶
FieldType holds information relating to a field. Includes Tag, type, and enums, if defined.
type MessageDef ¶
type MessageDef struct {
Name string
MsgType string
Fields map[int]*FieldDef
FieldsInDeclarationOrder []*FieldDef
RequiredTags TagSet
Tags TagSet
}
MessageDef can apply to header, trailer, or body of a FIX Message.
type XMLComponent ¶
type XMLComponent struct {
Name string `xml:"name,attr"`
MsgCat string `xml:"msgcat,attr"`
MsgType string `xml:"msgtype,attr"`
Members []*XMLComponentMember `xml:",any"`
}
XMLComponent can represent header, trailer, messages/message, or components/component xml elements.
type XMLComponentMember ¶
type XMLComponentMember struct {
XMLName xml.Name
Name string `xml:"name,attr"`
Required string `xml:"required,attr"`
Members []*XMLComponentMember `xml:",any"`
}
XMLComponentMember represents child elements of header, trailer, messages/message, and components/component elements
type XMLDoc ¶
type XMLDoc struct {
Type string `xml:"type,attr"`
Major int `xml:"major,attr"`
Minor int `xml:"minor,attr"`
ServicePack int `xml:"servicepack,attr"`
Header *XMLComponent `xml:"header"`
Trailer *XMLComponent `xml:"trailer"`
Messages []*XMLComponent `xml:"messages>message"`
Components []*XMLComponent `xml:"components>component"`
Fields []*XMLField `xml:"fields>field"`
}
XMLDoc is the unmarshalled root of a FIX Dictionary.