Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{'success': False, 'message': 'CURRENCY_NOT_PROVIDED', 'result': None} #150

Open
nktzdr opened this issue Apr 5, 2018 · 2 comments
Open

Comments

@nktzdr
Copy link

nktzdr commented Apr 5, 2018

when im trying to withdraw BTC I see this message in logs
what does it mean?

@shazrat
Copy link

shazrat commented May 3, 2018

I'm running into the same issue myself. I'll post back if I can figure this out.

@4lfclvr
Copy link

4lfclvr commented May 31, 2018

Figured out what the problem is. In the withdraw method in bittrex.py your code probably looks like this:

return self._api_query(path_dict={
API_V1_1: '/account/withdraw',
API_V2_0: '/key/balance/withdrawcurrency'
}, options={'currency': currency, 'quantity': quantity, 'address': address, 'paymentid': paymentid}
if paymentid else None, protection=PROTECTION_PRV)

Whats killing it is 'options' becomes 'None' when paymentid doesn't exist. To make it work, I replaced None with {'currency': currency, 'quantity': quantity, 'address': address} to get this:

return self._api_query(path_dict={
API_V1_1: '/account/withdraw',
API_V2_0: '/key/balance/withdrawcurrency'
}, options={'currency': currency, 'quantity': quantity, 'address': address, 'paymentid': paymentid}
if paymentid else {'currency': currency, 'quantity': quantity, 'address': address}, protection=PROTECTION_PRV)

Hope this helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants