code: def http_post_request(url, params, add_to_headers=None, _async=False):
      
      headers = {
          "Accept": "application/json",
          'Content-Type': 'application/json'
      }
      if add_to_headers:
          headers.update(add_to_headers)
      postdata = json.dumps(params)
      if _async:
          response = async_session.post(url, postdata, headers=headers, timeout=10)
          return response
      else:
          response = requests.post(url, postdata, headers=headers, timeout=10)
          try:
  
              if response.status_code == 200:
                  return response.json()
              else:
                  logger.debug(f'<POST>error_code:{response.status_code}  reason:{response.reason} detail:{response.text}')
                  return
          except BaseException as e:
              logger.exception(
                  f'<POST>httpPost failed, detail is:{response.text},{e}')
              return
docs: from 火币demo, post方法
      :param url:
      :param params:
      :param add_to_headers:
      :return: