From f33308f585c6d1e80e6c7224989f06a22376b934 Mon Sep 17 00:00:00 2001 From: hadrianl <137150224@qq.com> Date: Sun, 22 Sep 2019 22:15:22 +0800 Subject: [PATCH] correct name --- decoder.go | 2 +- order.go | 2 +- orderCondition.go | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/decoder.go b/decoder.go index 758ce92..1f252f7 100644 --- a/decoder.go +++ b/decoder.go @@ -2077,7 +2077,7 @@ func (d *ibDecoder) processCompletedOrderMsg(msgBuf *msgBuffer) { o.AutoCancelDate = msgBuf.readString() o.FilledQuantity = msgBuf.readFloat() - o.RefFuturesConId = msgBuf.readInt() + o.RefFuturesConID = msgBuf.readInt() o.AutoCancelParent = msgBuf.readBool() o.Shareholder = msgBuf.readString() o.ImbalanceOnly = msgBuf.readBool() diff --git a/order.go b/order.go index 2d81a1f..e850a16 100644 --- a/order.go +++ b/order.go @@ -186,7 +186,7 @@ type Order struct { AutoCancelDate string FilledQuantity float64 - RefFuturesConId int64 + RefFuturesConID int64 AutoCancelParent bool Shareholder string ImbalanceOnly bool diff --git a/orderCondition.go b/orderCondition.go index 79d440d..21ce77d 100644 --- a/orderCondition.go +++ b/orderCondition.go @@ -95,18 +95,18 @@ func (mc MarginCondition) toFields() []interface{} { type ContractCondition struct { OperatorCondition - ConId int64 + ConID int64 Exchange string } func (cc ContractCondition) decode(msgBuf *msgBuffer) { // 4 fields cc.OperatorCondition.decode(msgBuf) - cc.ConId = msgBuf.readInt() + cc.ConID = msgBuf.readInt() cc.Exchange = msgBuf.readString() } func (cc ContractCondition) toFields() []interface{} { - return append(cc.OperatorCondition.toFields(), cc.ConId, cc.Exchange) + return append(cc.OperatorCondition.toFields(), cc.ConID, cc.Exchange) } type TimeCondition struct {