Skip to content

Commit

Permalink
Fix URL
Browse files Browse the repository at this point in the history
Close YoRyan#54
  • Loading branch information
DarthGandalf authored and folkien committed May 10, 2021
1 parent 33e9a09 commit 8033c11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nuxhash/nhrest/python/nicehash.py
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion nuxhash/nicehash.py
Expand Up @@ -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)
Expand Down

0 comments on commit 8033c11

Please sign in to comment.