python-bittrex icon indicating copy to clipboard operation
python-bittrex copied to clipboard

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

Open nktzdr opened this issue 6 years ago • 2 comments

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

nktzdr avatar Apr 05 '18 20:04 nktzdr

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

shazrat avatar May 03 '18 07:05 shazrat

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

4lfclvr avatar May 31 '18 19:05 4lfclvr