def _send_cmd(self, cmd: str):
        """Encode IQFeed API messages."""
        self._sock.sendall(cmd.encode(encoding='latin-1', errors='strict'))
def _send_cmd ( self , cmd : str ) : self . _sock . sendall ( cmd . encode ( encoding = 'latin-1' , errors = 'strict' ) )
Encode IQFeed API messages.