Open kwadwobro1 opened 3 years ago
async def startwebsocket(self): print([self.symbol_formatting_map]) uri = "wss://stream.binance.com:9443/stream?streams=" + '/'.join( list(self.symbol_formattingmap)) print([uri])
The output of the code above is
{} wss://stream.binance.com:9443/stream?streams=
But in _init
self.symbol_formatting_map = { s.replace('/', '').lower() + f'@depth{self.depth_levels}': s for s in self.symbols }
Why is self.symbols empty
async def startwebsocket(self): print([self.symbol_formatting_map]) uri = "wss://stream.binance.com:9443/stream?streams=" + '/'.join( list(self.symbol_formattingmap)) print([uri])
The output of the code above is
{} wss://stream.binance.com:9443/stream?streams=
But in _init
self.symbol_formatting_map = { s.replace('/', '').lower() + f'@depth{self.depth_levels}': s for s in self.symbols }
Why is self.symbols empty