forked from quickfixgo/quickfix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TrdInstrmtLegGrp.go
104 lines (97 loc) · 5.01 KB
/
TrdInstrmtLegGrp.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
package trdinstrmtleggrp
import (
"github.com/quickfixgo/quickfix/fix50sp2/instrumentleg"
"github.com/quickfixgo/quickfix/fix50sp2/legstipulations"
"github.com/quickfixgo/quickfix/fix50sp2/nestedparties"
"github.com/quickfixgo/quickfix/fix50sp2/tradecaplegunderlyingsgrp"
)
//New returns an initialized TrdInstrmtLegGrp instance
func New() *TrdInstrmtLegGrp {
var m TrdInstrmtLegGrp
return &m
}
//NoLegs is a repeating group in TrdInstrmtLegGrp
type NoLegs struct {
//InstrumentLeg is a non-required component for NoLegs.
InstrumentLeg *instrumentleg.InstrumentLeg
//LegQty is a non-required field for NoLegs.
LegQty *float64 `fix:"687"`
//LegSwapType is a non-required field for NoLegs.
LegSwapType *int `fix:"690"`
//LegStipulations is a non-required component for NoLegs.
LegStipulations *legstipulations.LegStipulations
//LegPositionEffect is a non-required field for NoLegs.
LegPositionEffect *string `fix:"564"`
//LegCoveredOrUncovered is a non-required field for NoLegs.
LegCoveredOrUncovered *int `fix:"565"`
//NestedParties is a non-required component for NoLegs.
NestedParties *nestedparties.NestedParties
//LegRefID is a non-required field for NoLegs.
LegRefID *string `fix:"654"`
//LegSettlType is a non-required field for NoLegs.
LegSettlType *string `fix:"587"`
//LegSettlDate is a non-required field for NoLegs.
LegSettlDate *string `fix:"588"`
//LegLastPx is a non-required field for NoLegs.
LegLastPx *float64 `fix:"637"`
//LegReportID is a non-required field for NoLegs.
LegReportID *string `fix:"990"`
//LegSettlCurrency is a non-required field for NoLegs.
LegSettlCurrency *string `fix:"675"`
//LegLastForwardPoints is a non-required field for NoLegs.
LegLastForwardPoints *float64 `fix:"1073"`
//LegCalculatedCcyLastQty is a non-required field for NoLegs.
LegCalculatedCcyLastQty *float64 `fix:"1074"`
//LegGrossTradeAmt is a non-required field for NoLegs.
LegGrossTradeAmt *float64 `fix:"1075"`
//LegNumber is a non-required field for NoLegs.
LegNumber *int `fix:"1152"`
//TradeCapLegUnderlyingsGrp is a non-required component for NoLegs.
TradeCapLegUnderlyingsGrp *tradecaplegunderlyingsgrp.TradeCapLegUnderlyingsGrp
//LegVolatility is a non-required field for NoLegs.
LegVolatility *float64 `fix:"1379"`
//LegDividendYield is a non-required field for NoLegs.
LegDividendYield *float64 `fix:"1381"`
//LegCurrencyRatio is a non-required field for NoLegs.
LegCurrencyRatio *float64 `fix:"1383"`
//LegExecInst is a non-required field for NoLegs.
LegExecInst *string `fix:"1384"`
//LegLastQty is a non-required field for NoLegs.
LegLastQty *float64 `fix:"1418"`
}
//NewNoLegs returns an initialized NoLegs instance
func NewNoLegs() *NoLegs {
var m NoLegs
return &m
}
func (m *NoLegs) SetInstrumentLeg(v instrumentleg.InstrumentLeg) { m.InstrumentLeg = &v }
func (m *NoLegs) SetLegQty(v float64) { m.LegQty = &v }
func (m *NoLegs) SetLegSwapType(v int) { m.LegSwapType = &v }
func (m *NoLegs) SetLegStipulations(v legstipulations.LegStipulations) { m.LegStipulations = &v }
func (m *NoLegs) SetLegPositionEffect(v string) { m.LegPositionEffect = &v }
func (m *NoLegs) SetLegCoveredOrUncovered(v int) { m.LegCoveredOrUncovered = &v }
func (m *NoLegs) SetNestedParties(v nestedparties.NestedParties) { m.NestedParties = &v }
func (m *NoLegs) SetLegRefID(v string) { m.LegRefID = &v }
func (m *NoLegs) SetLegSettlType(v string) { m.LegSettlType = &v }
func (m *NoLegs) SetLegSettlDate(v string) { m.LegSettlDate = &v }
func (m *NoLegs) SetLegLastPx(v float64) { m.LegLastPx = &v }
func (m *NoLegs) SetLegReportID(v string) { m.LegReportID = &v }
func (m *NoLegs) SetLegSettlCurrency(v string) { m.LegSettlCurrency = &v }
func (m *NoLegs) SetLegLastForwardPoints(v float64) { m.LegLastForwardPoints = &v }
func (m *NoLegs) SetLegCalculatedCcyLastQty(v float64) { m.LegCalculatedCcyLastQty = &v }
func (m *NoLegs) SetLegGrossTradeAmt(v float64) { m.LegGrossTradeAmt = &v }
func (m *NoLegs) SetLegNumber(v int) { m.LegNumber = &v }
func (m *NoLegs) SetTradeCapLegUnderlyingsGrp(v tradecaplegunderlyingsgrp.TradeCapLegUnderlyingsGrp) {
m.TradeCapLegUnderlyingsGrp = &v
}
func (m *NoLegs) SetLegVolatility(v float64) { m.LegVolatility = &v }
func (m *NoLegs) SetLegDividendYield(v float64) { m.LegDividendYield = &v }
func (m *NoLegs) SetLegCurrencyRatio(v float64) { m.LegCurrencyRatio = &v }
func (m *NoLegs) SetLegExecInst(v string) { m.LegExecInst = &v }
func (m *NoLegs) SetLegLastQty(v float64) { m.LegLastQty = &v }
//TrdInstrmtLegGrp is a fix50sp2 Component
type TrdInstrmtLegGrp struct {
//NoLegs is a non-required field for TrdInstrmtLegGrp.
NoLegs []NoLegs `fix:"555,omitempty"`
}
func (m *TrdInstrmtLegGrp) SetNoLegs(v []NoLegs) { m.NoLegs = v }