def METHOD_NAME(self, payload, append_timestamp=True):
    timestamp = int(time.time())
    if append_timestamp:
        payload.append(timestamp)
    msg = "".join(list(map(str, payload))).encode()
    sign = hmac.new(self.secret_key, msg, hashlib.md5).hexdigest()
    return sign, timestamp