Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Fix URL #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nuxhash/nhrest/python/nicehash.py
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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