From cb684511a42ef5431766ae4bd6cc3be6ab753655 Mon Sep 17 00:00:00 2001 From: Ewald de Wit Date: Thu, 10 Nov 2022 13:39:06 +0100 Subject: [PATCH] Fix reqContractDetails for protocol version 176 --- ib_insync/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ib_insync/client.py b/ib_insync/client.py index 2dc735f8..8332217f 100644 --- a/ib_insync/client.py +++ b/ib_insync/client.py @@ -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) @@ -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,