Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions pytr/details.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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

Expand Down
Loading