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)