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

Api2 Nicehash error #27

Open
cryptowhizzard opened this issue Nov 9, 2019 · 1 comment
Open

Api2 Nicehash error #27

cryptowhizzard opened this issue Nov 9, 2019 · 1 comment

Comments

@cryptowhizzard
Copy link

Error when accessing top_price()

[2019-11-09 21:07:10,840 ERROR base_events.py:1608] Task exception was never retrieved
future: <Task finished coro=<nice_hash_task() done, defined at /root/Zilliqa-Mining-Proxy/zilpool/poolserver.py:229> exception=TypeError('string indices must be integers')>
Traceback (most recent call last):
File "/root/Zilliqa-Mining-Proxy/zilpool/poolserver.py", line 253, in nice_hash_task
privApi.keep_my_orders_top()
File "/root/Zilliqa-Mining-Proxy/zilpool/nicehash.py", line 317, in keep_my_orders_top
max_price=max_price)
File "/root/Zilliqa-Mining-Proxy/zilpool/nicehash.py", line 275, in get_top_price
full_orders = pubAPI.get_active_orders2()
File "/root/Zilliqa-Mining-Proxy/zilpool/nicehash.py", line 55, in get_active_orders2
daggerOrders = [order for order in response if order['algorithm'] == 'DAGGERHASHIMOTO' and order['market'] == 'USA']
File "/root/Zilliqa-Mining-Proxy/zilpool/nicehash.py", line 55, in
daggerOrders = [order for order in response if order['algorithm'] == 'DAGGERHASHIMOTO' and order['market'] == 'USA']
TypeError: string indices must be integers

@ShengguangXiao
Copy link
Contributor

It has been fixed in the latest commit, please pull again and try.

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

2 participants