title: Generate HMAC SHA256 signature Python
body: <p>Trying to generate HMAC SHA256 signature for 3Commas, I use the same parameters from the <a href="https://github.com/3commas-io/3commas-official-api-docs/blob/master/rest-api.md#example-1-as-a-query-string" rel="noreferrer">official example</a>, it should generate:
  "30f678a157230290e00475cfffccbc92ae3659d94c145a2c0e9d0fa28f41c11a"</p>
  
  <p>But I generate:
  "17a656c7df48fa2db615bfc719627fc94e59265e6af18cc7714694ea5b58a11a"</p>
  
  <p>Here is what I tried:</p>
  
  <pre><code>secretkey = 'NhqPtmdSJYdKjVHjA7PZj4Mge3R5YNiP1e3UZjInClVN65XAbvqqM6A7H5fATj0j'
  totalParams = '/public/api/ver1/accounts/new?type=binance&amp;name=binance_account&amp;api_key=XXXXXX&amp;secret=YYYYYY'
  print 'signature = '+hashlib.sha256((secretkey+totalParams).encode('ASCII')).hexdigest()
  </code></pre>
  
  <p>Can anyone help me out?</p>