Hi!
I am trying to use the Bitstamp API, but it apparently refuses to recognize my userid and password. I have enabled API access in the settings, and I tried disabling 2-factor authentication to no avail.
I am using this Python script, can anyone help me find the problem?
import urllib2
from urllib import urlencode
import json
user="12345"
passwd="top-secret"
req = {}
req['user'] = user
req['password'] = passwd
post_data = urlencode(req)
print post_data
res = urllib2.urlopen("https://www.bitstamp.net/api/balance", post_data)
result = json.load(res)
print result
I get this results (sorry for the primitive formatting)
password=top-secret&user=12345
{u'error': u'Missing user and/or password POST parameters'}
(of course these are not my real userid and password, I get the same error with the real ones).
EDIT: Problem solved, se my post at the end.