kmadac / bitstamp-python-client

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

Cannot get transfer_to_main to work- Invalid Parameters #32

Closed mcplums closed 5 years ago

mcplums commented 6 years ago

I am calling the transfer_to_main function with

trading_client.transfer_to_main(0.05,"ltc")

Yet I get the following error:

root@XXX:~# python test3.py
.Traceback (most recent call last):
  File "test3.py", line 34, in process_withdrawals
    trading_client.transfer_to_main(0.05,"ltc")
  File "/root/anaconda3/lib/python3.6/site-packages/bitstamp/bitstampclienttest.py", line 403, in transfer_to_main
    version=2)
  File "/root/anaconda3/lib/python3.6/site-packages/bitstamp/bitstampclienttest.py", line 48, in _post
    return self._request(requests.post, *args, **kwargs)
  File "/root/anaconda3/lib/python3.6/site-packages/bitstamp/bitstampclienttest.py", line 93, in _request
    raise BitstampError(json_response.get('reason'))
bitstamp.bitstampclienttest.BitstampError: Invalid parameters

What am I doing wrong?

Thanks!

gosuto-inzasheru commented 6 years ago

Try trading_client.transfer_to_main(amount='0.05', currency='ltc')

kmadac commented 5 years ago

Closing issue as there is no update for more than a year.