alpaca_trade_api/stream2.py
async def close(self):
        '''Close any of open connections'''
        if self._ws is not None:
            await self._ws.close()
        if self.polygon is not None:
            await self.polygon.close()
async def close(self):
        '''Close any of open connections'''
        if self._ws is not None:
            await self._ws.close()
        if self.polygon is not None:
            await self.polygon.close()
async def close ( self ) : if self . _ws is not None : await self . _ws . close ( ) if self . polygon is not None : await self . polygon . close ( )
Close any of open connections
Close any of open connections