nicehash/rest-clients-demo

test_bot.py get_accounts_for_currency wrong key 'currency'

frstrtr opened this issue · 0 comments

my_btc_account = private_api.get_accounts_for_currency(currencies['currencies'][0]['currency'])

File "test_bot.py", line 76, in my_btc_account = private_api.get_accounts_for_currency(currencies['currencies'][0]['currency'])
KeyError: 'currency'

Fix -
my_btc_account = private_api.get_accounts_for_currency(currencies['currencies'][0]['symbol'])