本文整理汇总了Golang中github.com/quickfixgo/quickfix/field.OrdTypeField.Value方法的典型用法代码示例。如果您正苦于以下问题:Golang OrdTypeField.Value方法的具体用法?Golang OrdTypeField.Value怎么用?Golang OrdTypeField.Value使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类github.com/quickfixgo/quickfix/field.OrdTypeField
的用法示例。
在下文中一共展示了OrdTypeField.Value方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: GetOrdType
//GetOrdType gets OrdType, Tag 40
func (m NewOrderSingle) GetOrdType() (v enum.OrdType, err quickfix.MessageRejectError) {
var f field.OrdTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
示例2: GetOrdType
//GetOrdType gets OrdType, Tag 40
func (m ExecutionReport) GetOrdType() (v enum.OrdType, err quickfix.MessageRejectError) {
var f field.OrdTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
示例3: GetOrdType
//GetOrdType gets OrdType, Tag 40
func (m NoQuoteEntries) GetOrdType() (v enum.OrdType, err quickfix.MessageRejectError) {
var f field.OrdTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
示例4: GetOrdType
//GetOrdType gets OrdType, Tag 40
func (m OrderCancelReplaceRequest) GetOrdType() (v enum.OrdType, err quickfix.MessageRejectError) {
var f field.OrdTypeField
if err = m.Get(&f); err == nil {
v = f.Value()
}
return
}
示例5: queryNewOrderSingle40
func queryNewOrderSingle40() fix40nos.NewOrderSingle {
var ordType field.OrdTypeField
order := fix40nos.New(queryClOrdID(), field.NewHandlInst("1"), querySymbol(), querySide(), queryOrderQty(), queryOrdType(&ordType))
switch ordType.Value() {
case enum.OrdType_LIMIT, enum.OrdType_STOP_LIMIT:
order.Set(queryPrice())
}
switch ordType.Value() {
case enum.OrdType_STOP, enum.OrdType_STOP_LIMIT:
order.Set(queryStopPx())
}
order.Set(queryTimeInForce())
queryHeader(order.Header.Header)
return order
}
示例6: queryNewOrderSingle42
func queryNewOrderSingle42() (msg quickfix.Message) {
var ordType field.OrdTypeField
order := fix42nos.New(queryClOrdID(), field.NewHandlInst("1"), querySymbol(), querySide(), field.NewTransactTime(time.Now()), queryOrdType(&ordType))
order.Set(queryOrderQty())
switch ordType.Value() {
case enum.OrdType_LIMIT, enum.OrdType_STOP_LIMIT:
order.Set(queryPrice())
}
switch ordType.Value() {
case enum.OrdType_STOP, enum.OrdType_STOP_LIMIT:
order.Set(queryStopPx())
}
order.Set(queryTimeInForce())
msg = order.ToMessage()
queryHeader(msg.Header)
return
}