當前位置: 首頁>>代碼示例>>Golang>>正文


Golang field.NewTransactTime函數代碼示例

本文整理匯總了Golang中github.com/quickfixgo/quickfix/field.NewTransactTime函數的典型用法代碼示例。如果您正苦於以下問題:Golang NewTransactTime函數的具體用法?Golang NewTransactTime怎麽用?Golang NewTransactTime使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了NewTransactTime函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。

示例1: queryOrderCancelRequest50

func queryOrderCancelRequest50() (msg quickfix.Message) {
	cancel := fix50cxl.New(queryOrigClOrdID(), queryClOrdID(), querySide(), field.NewTransactTime(time.Now()))
	cancel.Set(querySymbol())
	cancel.Set(queryOrderQty())
	msg = cancel.ToMessage()
	queryHeader(msg.Header)
	return
}
開發者ID:quickfixgo,項目名稱:examples,代碼行數:8,代碼來源:console.go

示例2: queryNewOrderSingle43

func queryNewOrderSingle43() (msg quickfix.Message) {
	var ordType field.OrdTypeField
	order := fix43nos.New(queryClOrdID(), field.NewHandlInst("1"), querySide(), field.NewTransactTime(time.Now()), queryOrdType(&ordType))
	order.Set(querySymbol())
	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
}
開發者ID:quickfixgo,項目名稱:examples,代碼行數:22,代碼來源:console.go

示例3: SetTransactTime

//SetTransactTime sets TransactTime, Tag 60
func (m NoOrders) SetTransactTime(v time.Time) {
	m.Set(field.NewTransactTime(v))
}
開發者ID:cbusbey,項目名稱:quickfix,代碼行數:4,代碼來源:NewOrderList.generated.go

示例4: SetTransactTime

//SetTransactTime sets TransactTime, Tag 60
func (m AllocationACK) SetTransactTime(v time.Time) {
	m.Set(field.NewTransactTime(v))
}
開發者ID:quickfixgo,項目名稱:quickfix,代碼行數:4,代碼來源:AllocationACK.generated.go

示例5: SetTransactTime

//SetTransactTime sets TransactTime, Tag 60
func (m Quote) SetTransactTime(v time.Time) {
	m.Set(field.NewTransactTime(v))
}
開發者ID:quickfixgo,項目名稱:quickfix,代碼行數:4,代碼來源:Quote.generated.go

示例6: SetTransactTime

//SetTransactTime sets TransactTime, Tag 60
func (m ConfirmationRequest) SetTransactTime(v time.Time) {
	m.Set(field.NewTransactTime(v))
}
開發者ID:quickfixgo,項目名稱:quickfix,代碼行數:4,代碼來源:ConfirmationRequest.generated.go

示例7: SetTransactTime

//SetTransactTime sets TransactTime, Tag 60
func (m AllocationReportAck) SetTransactTime(v time.Time) {
	m.Set(field.NewTransactTime(v))
}
開發者ID:cbusbey,項目名稱:quickfix,代碼行數:4,代碼來源:AllocationReportAck.generated.go

示例8: SetTransactTime

//SetTransactTime sets TransactTime, Tag 60
func (m ListExecute) SetTransactTime(v time.Time) {
	m.Set(field.NewTransactTime(v))
}
開發者ID:cbusbey,項目名稱:quickfix,代碼行數:4,代碼來源:ListExecute.generated.go

示例9: SetTransactTime

//SetTransactTime sets TransactTime, Tag 60
func (m IndicationofInterest) SetTransactTime(v time.Time) {
	m.Set(field.NewTransactTime(v))
}
開發者ID:quickfixgo,項目名稱:quickfix,代碼行數:4,代碼來源:IndicationofInterest.generated.go

示例10: SetTransactTime

//SetTransactTime sets TransactTime, Tag 60
func (m OrderCancelReject) SetTransactTime(v time.Time) {
	m.Set(field.NewTransactTime(v))
}
開發者ID:quickfixgo,項目名稱:quickfix,代碼行數:4,代碼來源:OrderCancelReject.generated.go

示例11: SetTransactTime

//SetTransactTime sets TransactTime, Tag 60
func (m NoSecurityTypes) SetTransactTime(v time.Time) {
	m.Set(field.NewTransactTime(v))
}
開發者ID:cbusbey,項目名稱:quickfix,代碼行數:4,代碼來源:SecurityTypes.generated.go

示例12: SetTransactTime

//SetTransactTime sets TransactTime, Tag 60
func (m ListStatus) SetTransactTime(v time.Time) {
	m.Set(field.NewTransactTime(v))
}
開發者ID:cbusbey,項目名稱:quickfix,代碼行數:4,代碼來源:ListStatus.generated.go

示例13: SetTransactTime

//SetTransactTime sets TransactTime, Tag 60
func (m MarketDefinition) SetTransactTime(v time.Time) {
	m.Set(field.NewTransactTime(v))
}
開發者ID:quickfixgo,項目名稱:quickfix,代碼行數:4,代碼來源:MarketDefinition.generated.go

示例14: SetTransactTime

//SetTransactTime sets TransactTime, Tag 60
func (m NoDates) SetTransactTime(v time.Time) {
	m.Set(field.NewTransactTime(v))
}
開發者ID:cbusbey,項目名稱:quickfix,代碼行數:4,代碼來源:TradeCaptureReportRequest.generated.go

示例15: SetTransactTime

//SetTransactTime sets TransactTime, Tag 60
func (m Advertisement) SetTransactTime(v time.Time) {
	m.Set(field.NewTransactTime(v))
}
開發者ID:quickfixgo,項目名稱:quickfix,代碼行數:4,代碼來源:Advertisement.generated.go


注:本文中的github.com/quickfixgo/quickfix/field.NewTransactTime函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。