Skip to content

Commit

Permalink
Update post merge
Browse files Browse the repository at this point in the history
  • Loading branch information
bmoscon committed Nov 26, 2021
1 parent 34e8feb commit 2e9d850
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions cryptofeed/exchanges/delta.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
class Delta(Feed):
id = DELTA
symbol_endpoint = 'https://api.delta.exchange/v2/products'
websocket_endpoint = 'wss://socket.delta.exchange'
sandbox_endpoint = 'wss://testnet-socket.delta.exchange'
websocket_channels = {
L2_BOOK: 'book',
TRADES: 'trade',
Expand Down Expand Up @@ -64,11 +66,7 @@ def _parse_symbol_data(cls, data: dict) -> Tuple[Dict, Dict]:
ret[sym.normalized] = entry['symbol']
return ret, info

def __init__(self, **kwargs):
super().__init__('wss://socket.delta.exchange', **kwargs)
if self.sandbox:
self.address = 'wss://testnet-socket.delta.exchange'
self.__reset()

def __reset(self):
self._l2_book = {}


0 comments on commit 2e9d850

Please sign in to comment.