kmadac / bitstamp-python-client

Python package to communicate with bitstamp.net
MIT License
143 stars 70 forks source link

Withdrawal bitcoin issue #15

Closed Nono242 closed 10 years ago

Nono242 commented 10 years ago

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

Nono242 commented 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.

kmadac commented 10 years ago

Hi Nano242, thanks for reporting the issue. Could you or someone else try whether it works correctly now?

Nono242 commented 10 years ago

Perfect. It is solved.

Nono242 commented 10 years ago

Thankx