Skip to content

Commit

Permalink
correct name
Browse files Browse the repository at this point in the history
  • Loading branch information
hadrianl committed Sep 22, 2019
1 parent dc906ab commit f33308f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion order.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ type Order struct {

AutoCancelDate string
FilledQuantity float64
RefFuturesConId int64
RefFuturesConID int64
AutoCancelParent bool
Shareholder string
ImbalanceOnly bool
Expand Down
6 changes: 3 additions & 3 deletions orderCondition.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f33308f

Please sign in to comment.