Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
m5l14i11 committed Sep 11, 2024
1 parent 40d6281 commit 2fa8408
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/interfaces/abstract_ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ class AbstractWS(ABC):
def run(self):
pass

@abstractmethod
def close(self):
pass

@abstractmethod
def receive(self, symbol: Symbol, timeframe: Timeframe):
pass
Expand Down
1 change: 1 addition & 0 deletions feed/_realtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ async def __aenter__(self):

async def __aexit__(self, exc_type, exc_value, traceback):
await self.ws.unsubscribe(self.symbol, self.timeframe)
await self.ws.close()
return self

def __aiter__(self):
Expand Down

0 comments on commit 2fa8408

Please sign in to comment.