def send(self, api_key=None, secret=None, list_data=None, auth=False, **kwargs):
if auth:<EOL><INDENT>nonce = str(int(time.time() * <NUM_LIT>))<EOL>auth_string = '<STR_LIT>' + nonce<EOL>auth_sig = hmac.new(secret.encode(), auth_string.encode(),<EOL>hashlib.sha384).hexdigest()<EOL>payload = {'<STR_LIT>': '<STR_LIT>', '<STR_LIT>': api_key, '<STR_LIT>': auth_sig,<EOL>'<STR_LIT>': auth_string, '<STR_LIT>': nonce}<EOL>payload = json.dumps(payload)<EOL><DEDENT>elif list_data:<EOL><INDENT>payload = json.dumps(list_data)<EOL><DEDENT>else:<EOL><INDENT>payload = json.dumps(kwargs)<EOL><DEDENT>self.log.debug("<STR_LIT>", payload)<EOL>try:<EOL><INDENT>self.socket.send(payload)<EOL><DEDENT>except websocket.WebSocketConnectionClosedException:<EOL><INDENT>self.log.error("<STR_LIT>", kwargs)<EOL><DEDENT>
Sends the given Payload to the API via the websocket connection.

        :param kwargs: payload paarameters as key=value pairs
        :return: