Skip to content

Commit

Permalink
Fix reqContractDetails for protocol version 176
Browse files Browse the repository at this point in the history
  • Loading branch information
erdewit committed Nov 10, 2022
1 parent 371b57c commit cb68451
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ib_insync/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ def reqContractDetails(self, reqId, contract):
contract.includeExpired,
contract.secIdType,
contract.secId]
if self.serverVersion() > 176:
if self.serverVersion() >= 176:
fields += [contract.issuerId]
self.send(*fields)

Expand Down Expand Up @@ -975,13 +975,13 @@ def cancelWshMetaData(self, reqId):

def reqWshEventData(self, reqId, data: WshEventData):
fields = [102, reqId, data.conId]
if self.serverVersion() > 171:
if self.serverVersion() >= 171:
fields += [
data.filter,
data.fillWatchlist,
data.fillPortfolio,
data.fillCompetitors]
if self.serverVersion() > 173:
if self.serverVersion() >= 173:
fields += [
data.startDate,
data.endDate,
Expand Down

0 comments on commit cb68451

Please sign in to comment.