title: Starting from zero bitstamp api in python
body: <p>Starting from stage one trying to connect to bitstamp.
  I have a funded account and an api key.</p>
  
  <p>I am trying the following:</p>
  
  <pre><code>import bitstamp.client
  
  public_client = bitstamp.client.Public()
  print(public_client.ticker()['volume'])
  
  
  trading_client = bitstamp.client.Trading(username='userNameForWeb', key='apiKeyFromBitStamp', secret='myPasswordFromWeb')
  
  
  print(trading_client.ticker()['volume'])   
  print(trading_client.account_balance()['fee'])
  </code></pre>
  
  <p>Yet getting the error:</p>
  
  <pre><code>        Traceback (most recent call last):
          File "&lt;stdin&gt;", line 1, in &lt;module&gt;
          File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/widgets/externalshell/sitecustomize.py", line 540, in runfile
          execfile(filename, namespace)
          File "/Users/jasonmellone/Documents/PythonProjects/bitStamp.py", line 18, in &lt;module&gt;
          print(trading_client.account_balance()['fee'])
          File "/Library/Python/2.7/site-packages/bitstamp/client.py", line 197, in account_balance
          return self._post("balance/", return_json=True)
          File "/Library/Python/2.7/site-packages/bitstamp/client.py", line 47, in _post
          return self._request(requests.post, *args, **kwargs)
          File "/Library/Python/2.7/site-packages/bitstamp/client.py", line 80, in _request
          raise BitstampError(error)
          bitstamp.client.BitstampError: Invalid signature
  </code></pre>
  
  <p>I grabbed the code directly from the <a href="https://github.com/kmadac/bitstamp-python-client" rel="nofollow">github project</a>.</p>
  
  <p>Happy to use other library for python, but looking for input.</p>
  
  <p>Thanks!</p>