question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error Authenticating Kucoin Sandbox

See original GitHub issue

Language: Javascript (Node) Version number: 12.20.1 CCXT lib version number: ccxt@1.42.45 Exchange: Kucoin

kucoin = ccxt.kucoin({
apiKey: "",
secret: "",
password: ""
})
kucoin.setSandboxMode(true)
const fetchedPositions = await kucoin.fetchBalance()
console.log(fetchedPositions)
UnhandledPromiseRejectionWarning: AuthenticationError: Invalid KC-API-PASSPHRASE

I have checked multiple times, and I am sure I am using the correct apiKey, secret, and password. The live version authenticates fine

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
drixiecommented, Mar 19, 2021

@kroitor Thanks for testing it out. Let me know if KuCoin responds to you

2reactions
drixiecommented, Mar 1, 2021

@kroitor Thanks for the response. No, it does not answer my question. Before reporting the issue, I created a separate keypair at the sandbox link you shared, and it is giving me the error I shared above. I did not use live keys with the testnet. I used sandbox keys with the testnet and tried it two times with two separate accounts just to be sure.

I mentioned that the “live version authenticates fine” for context. I used the live keypair to check for that.

Can you confirm this on your end and let me know if the Kucoin sandbox works for you with a testnet keypair? Also, it will be great if you keep the issue open until you confirm that the sandbox works for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

KuCoin API Documentation: General
Sandbox is the test environment, used for testing an API connection or web trading. It provides all the functionalities of the live exchange....
Read more >
Cannot pass Google Authenticator verification to get Sandbox ...
I have been struggling with sandbox.kucoin.com for a couple of days already. ... I was constantly seeing the Internal Error notification.
Read more >
python-kucoin Documentation - Read the Docs
Simple handling of authentication ... To test on the Sandbox register with Kucoin Sandbox. ... On an API call error a kucoin.exceptions.
Read more >
Can't create KuCoin order with Google App Scripts
Solved above problem here is the code to post a buy order on KuCoin: ... host = 'https://openapi-sandbox.kucoin.com'; var timeStamp = ''+ ...
Read more >
API Kucoin Futures - eSeGeCe
Requires an API Key, Secret and Passphrase to authenticate and uses HTTPs ... Sandbox: if enabled it will connect to Kucoin Demo Account...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found