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 6d37db8..c5fefe9 100644 --- a/decoder.go +++ b/decoder.go @@ -2134,7 +2134,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