nicehash/rest-clients-demo

Error 2000 Invalid session

quant-ru opened this issue · 1 comments

import nicehash

host = 'https://api2.nicehash.com/'
organisation_id = 'id'
key = 'key'
secret = 'secret'

private_api = nicehash.private_api(host, organisation_id, key, secret)

my_accounts = private_api.get_accounts_for_currency('BTC')
print(my_accounts)

error:

Exception: 401: Unauthorized: b'{"error_id":"e7e06815-4aa6-41d6-a9a7-423f8063cdf8","errors":[{"code":2000,"message":"Invalid session"}]}'

Idk how but I fixed it.