From d8a59c328db506e7c8e66f502149cfa1ac2d076e Mon Sep 17 00:00:00 2001 From: hadrianl <137150224@qq.com> Date: Sun, 20 Sep 2020 02:39:37 +0800 Subject: [PATCH] fix Order.ParenPermID -> Order.ParentPermID --- common.go | 2 +- decoder.go | 2 +- order.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common.go b/common.go index cbb2f89..39fc3c2 100644 --- a/common.go +++ b/common.go @@ -209,7 +209,7 @@ type DepthMktDataDescription struct { func (d DepthMktDataDescription) String() string { aggGroup := "" if d.AggGroup != UNSETINT { - aggGroup = string(d.AggGroup) + aggGroup = fmt.Sprint(d.AggGroup) } return fmt.Sprintf("DepthMktDataDescription", diff --git a/decoder.go b/decoder.go index 513c71a..7417b6d 100644 --- a/decoder.go +++ b/decoder.go @@ -2132,7 +2132,7 @@ func (d *ibDecoder) processCompletedOrderMsg(msgBuf *MsgBuffer) { o.Shareholder = msgBuf.readString() o.ImbalanceOnly = msgBuf.readBool() o.RouteMarketableToBbo = msgBuf.readBool() - o.ParenPermID = msgBuf.readInt() + o.ParentPermID = msgBuf.readInt() orderState.CompletedTime = msgBuf.readString() orderState.CompletedStatus = msgBuf.readString() diff --git a/order.go b/order.go index 0411f29..95b7fc4 100644 --- a/order.go +++ b/order.go @@ -195,7 +195,7 @@ type Order struct { Shareholder string ImbalanceOnly bool RouteMarketableToBbo bool - ParenPermID int64 + ParentPermID int64 UsePriceMgmtAlgo bool SoftDollarTier SoftDollarTier