ccxt: error: ['EAPI:Invalid key'] doing fetchBalance for Kraken
Using Node.JS 8.1.4 I receive this error after instantiation with the api key and private key from Kraken.
const market = new ccxt[key]({
apiKey: data.apiKey,
secret: data.secret
})
console.log(await market.fetchBalance())
Public functions seem to work fine.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 23 (13 by maintainers)
Commits related to this issue
- issue #52 kraken workaround — committed to ccxt/ccxt by kroitor 7 years ago
- issue #52 kraken workaround merged — committed to ccxt/ccxt by kroitor 7 years ago
Oh, sry about my ignorance! I did not know. Let me try 😃
Hi @kroitor, thanks for the assistance 👍
I gerenated a new API key with the following settings:
and the issue seems resolved, thanks! 💯 🥇
We have finally integrated an adequate solution for Kraken, and removed that ugly workaround! ) Module crypto is now removed from dependencies completely!
I can confirm the updated code works. Thanks!
Yep, we found the problem (it is due to switching from crypto → crypto-js under Node). We will fix it as soon as possible and it will be working in the next release (this may take a couple of hours for testing), thanks for your patience.
Yeah, it looks like a Node-only issue, Python and PHP working normally. I am debugging this right now, should upload the fix soon. Thanks!