Skip to content

Commit

Permalink
Display error warnings in PhemexDataStore (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
MtkN1 committed Jan 5, 2022
1 parent 5f3558a commit 2eb1117
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pybotters/models/phemex.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ def _onmessage(self, msg: Item, ws: ClientWebSocketResponse) -> None:
if 'positions' in msg:
self.positions._onmessage(msg.get('positions'))

if msg.get('error'):
logger.warning(msg)

@property
def trade(self) -> 'Trade':
return self.get('trade', Trade)
Expand Down

0 comments on commit 2eb1117

Please sign in to comment.