title: SHA 256 of what?
body: <p><a href="https://www.binance.com/restapipub.html" rel="nofollow noreferrer">https://www.binance.com/restapipub.html</a></p>
  
  <p>I have been trying to code a trading bot. I have figured out the data and decision making part of the program. Now I need to code the making order part of the program.</p>
  
  <p>I checked their website and found that I need to supply the sha256 of </p>
  
  <blockquote>
    <p>clientsecret|totalparams</p>
  </blockquote>
  
  <p>and that </p>
  
  <blockquote>
    <p>totalParams is defined as the query string concatenated with the request body</p>
  </blockquote>
  
  <p>So far this is what I have:</p>
  
  <pre><code>import requests
  
  headers = {
      'X-MBX-APIKEY': MY_API_KEY,
  }
  
  data = [
    ('symbol', 'LTCBTC'),
    ('side', 'BUY'),
    ('type', 'LIMIT'),
    ('timeInForce', 'GTC'),
    ('quantity', '1'),
    ('price', '0.1'),
    ('recvWindow', '6000000'),
    ('timestamp', '1499827319559'),
    ('signature', NO_IDEA ),
  ]
  
  requests.post('https://www.binance.com/api/v1/order', headers=headers, data=data)
  </code></pre>
  
  <p>I need to figure out what the signature and by extension totalparams would be.</p>