Skip to content

Commit

Permalink
Merge pull request #143 from AsyncAlgoTrading/subscribe
Browse files Browse the repository at this point in the history
subscribe by exchange
  • Loading branch information
timkpaine committed Jan 20, 2021
2 parents 63c87c4 + d492e98 commit 21fc1ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aat/engine/dispatch/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async def subscribe(
self._data_subscriptions[strategy].append(instrument)

for exc in self._exchanges:
if instrument:
if instrument and instrument.exchange == exc.exchange():
await exc.subscribe(instrument)

def dataSubscriptions(self, handler: Callable, event: Event) -> bool:
Expand Down

0 comments on commit 21fc1ff

Please sign in to comment.