From 8033c11453ffa927aef32a97fb907da85695b810 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sat, 27 Jun 2020 17:25:10 +0100 Subject: [PATCH] Fix URL Close #54 --- nuxhash/nhrest/python/nicehash.py | 2 +- nuxhash/nicehash.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nuxhash/nhrest/python/nicehash.py b/nuxhash/nhrest/python/nicehash.py index 79b6318..56aa9a7 100644 --- a/nuxhash/nhrest/python/nicehash.py +++ b/nuxhash/nhrest/python/nicehash.py @@ -162,7 +162,7 @@ def algo_settings_from_response(self, algorithm, algo_response): return algo_setting def get_accounts(self): - return self.request('GET', '/main/api/v2/accounting/accounts/', '', None) + return self.request('GET', '/main/api/v2/accounting/accounts2/', '', None) def get_accounts_for_currency(self, currency): return self.request('GET', '/main/api/v2/accounting/account/' + currency, '', None) diff --git a/nuxhash/nicehash.py b/nuxhash/nicehash.py index 751c4b7..88e3f6e 100644 --- a/nuxhash/nicehash.py +++ b/nuxhash/nicehash.py @@ -24,7 +24,7 @@ def get_balances(nx_settings): address = nx_settings['nicehash']['wallet'] response = nh.public_api(HOST).request( - 'GET', f'/main/api/v2/mining/external/{address}/rigs/', '', None) + 'GET', f'/main/api/v2/mining/external/{address}/rigs2/', '', None) unpaid = response.get('unpaidAmount', None) if response.get('externalAddress', True): wallet = response.get('externalBalance', None)