From ca160bb1d0aaf6cb285fe1e315f0a8b4a9666fc1 Mon Sep 17 00:00:00 2001 From: TiloHeidasch Date: Wed, 7 Oct 2026 16:49:26 +0200 Subject: [PATCH] Fix details without instrument suitability --- pytr/details.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pytr/details.py b/pytr/details.py index e556bd70..58c1c016 100644 --- a/pytr/details.py +++ b/pytr/details.py @@ -17,7 +17,6 @@ async def details_loop(self): await self.tr.ticker(self.isin, exchange="LSX") await self.tr.performance(self.isin, exchange="LSX") await self.tr.instrument_details(self.isin) - await self.tr.instrument_suitability(self.isin) # await self.tr.add_watchlist(self.isin) # await self.tr.remove_watchlist(self.isin) @@ -42,14 +41,10 @@ async def details_loop(self): elif subscription["type"] == "instrument": recv += 1 self.instrument = response - elif subscription["type"] == "instrumentSuitability": - recv += 1 - self.instrumentSuitability = response - print("instrumentSuitability:", response) else: print(f"unmatched subscription of type '{subscription['type']}':\n{preview(response, num_lines=30)}") - if recv == 6: + if recv == 5: await self.tr.close() return