Closed Nono242 closed 10 years ago
The answer from bitstamp if successful is a json format. The code should be def bitcoin_withdrawal(self, amount, address): """ Send bitcoins to another bitcoin wallet specified by address. """ data = {'amount': amount, 'address': address} return self._post("bitcoin_withdrawal/", data=data).json()
I'm a newbie at python and github, so I let you solve this.
Hi Nano242, thanks for reporting the issue. Could you or someone else try whether it works correctly now?
Perfect. It is solved.
Thankx
Hello,
I've the following error while I'm calling bitcoin_withdrawal method as follow Traceback (most recent call last): File "/home/pi/Bitstamp_Test.py", line 25, in
trading_client.bitcoin_withdrawal('0.00200000', bitcoin_withdrawal_address)
File "/usr/local/lib/python2.7/dist-packages/bitstamp/client.py", line 259, i$
return self._expect_true(response)
File "/usr/local/lib/python2.7/dist-packages/bitstamp/client.py", line 163, i$
raise BitstampError("Unexpected response")
BitstampError: Unexpected response
The withdrawal is accepted by bitstamp but there is this error message "Unexpected response".
Thank you for solving the issue, Arnaud