Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid API Key #96

Closed
nerd-lab opened this issue Jul 10, 2018 · 1 comment
Closed

Invalid API Key #96

nerd-lab opened this issue Jul 10, 2018 · 1 comment

Comments

@nerd-lab
Copy link

nerd-lab commented Jul 10, 2018

Versions

OS: w10  
Python: 3.6  
krakenex: 2.1.0

What are you trying to achieve?

Getting balance of an asset with pykrakenapi

# code sample
import krakenex
from pykrakenapi import KrakenAPI

api = krakenex.API()
api.load_key('key.key')

k = KrakenAPI(api)

print(k.get_account_balance()[data['base']])

What do you expect to happen?

It prints a number

What happens instead?

I get the error that my API Key is invalid

# error message
attempt: 000 | ['EAPI:Invalid key']
attempt: 001 | ['EAPI:Invalid key']
attempt: 002 | ['EAPI:Invalid key']

etc.
It's a completely new API Key 2FA for it is disabled

Edit: When I try to do it with query_private I get an invalid nonce error. I also get the invalid nonce error with pykrakenapi

import krakenex

k = krakenex.API()
k.load_key('key.key')

data = k.query_private('Balance')
print(data)
#output
{'error': ['EAPI:Invalid nonce']}
@nerd-lab
Copy link
Author

solved with fix in #75

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant