specfix

package
v0.0.50 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

package specfix represents XML specification of the FIX protocol.

Index

Constants

This section is empty.

Variables

View Source
var MOEX44 []byte

Functions

This section is empty.

Types

type Component added in v0.0.50

type Component struct {
	Name     string
	Required bool
}

func (*Component) UnmarshalXML added in v0.0.50

func (fld *Component) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type ComponentDef added in v0.0.50

type ComponentDef struct {
	Name       string      `xml:"name,attr"`
	Fields     []Field     `xml:"field"`
	Components []Component `xml:"component"`
	Groups     []Group     `xml:"group"`
}

type Field added in v0.0.50

type Field struct {
	Name     string
	Required bool
}

func (*Field) UnmarshalXML added in v0.0.50

func (fld *Field) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type FieldDef added in v0.0.50

type FieldDef struct {
	Number int
	Name   string
	Type   string
	MinLen int
	MaxLen int
	Values []Value
}

func (*FieldDef) UnmarshalXML added in v0.0.50

func (fld *FieldDef) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type Group added in v0.0.50

type Group struct {
	Name       string      `xml:"name,attr"`
	Required   string      `xml:"required,attr"`
	Fields     []Field     `xml:"field"`
	Components []Component `xml:"component"`
	Groups     []Group     `xml:"group"`
}
type Header struct {
	Fields     []Field     `xml:"field"`
	Components []Component `xml:"component"`
	Groups     []Group     `xml:"group"`
}

type Message added in v0.0.50

type Message struct {
	Name       string      `xml:"name,attr"`
	MsgCat     string      `xml:"msgcat,attr"`
	MsgType    string      `xml:"msgtype,attr"`
	Fields     []Field     `xml:"field"`
	Components []Component `xml:"component"`
	Groups     []Group     `xml:"group"`
}

type Spec added in v0.0.50

type Spec struct {
	XMLName       xml.Name       `xml:"fix"`
	Type          string         `xml:"type,attr"`
	Major         string         `xml:"major,attr"`
	Minor         string         `xml:"minor,attr"`
	Servicepack   string         `xml:"servicepack,attr"`
	Header        Header         `xml:"header"`
	Messages      []Message      `xml:"messages>message"`
	Trailer       []Field        `xml:"trailer>field"`
	ComponentDefs []ComponentDef `xml:"components>component"`
	FieldDefs     []FieldDef     `xml:"fields>field"`
}

Spec represents a FIX messages based on a XML specification of the FIX protocol.

type Value added in v0.0.50

type Value struct {
	Enum        string `xml:"enum,attr"`
	Description string `xml:"description,attr"`
}

Jump to

Keyboard shortcuts

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