Kucoin futures Invalid KC-API-PASSPHRASE
See original GitHub issueMUST READ THIS BEFORE SUBMITTING ISSUES (read the links, then delete this message before submitting):
- https://github.com/ccxt/ccxt/wiki/FAQ
- https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-submit-an-issue
Make sure your local version of CCXT is up to date. Check by comparing the output of ccxt.version
to https://github.com/ccxt/ccxt/blob/master/package.json#L3
- OS:
- Programming Language version:
- CCXT version:
kucoin_futures = ccxt.kucoinfutures({
"apiKey": config.KUCOIN_FUTURES_API_KEY,
"secret": config.KUCOIN_FUTURES_API_KEY,
"password": config.KUCOIN_PASSWORD
})
balance = kucoin_futures.fetch_balance()
print (balance)
Got
ccxt.base.errors.AuthenticationError: kucoinfutures Invalid KC-API-PASSPHRASE
BUT When i do same with spot, everything works
kucoin_spot = ccxt.kucoin({
"apiKey": config.KUCOIN_API_KEY,
"secret": config.KUCOIN_SECRET_KEY,
"password": config.KUCOIN_PASSWORD
})
balance = kucoin_spot.fetch_balance()
print (balance)
Issue Analytics
- State:
- Created a year ago
- Comments:21 (10 by maintainers)
Top Results From Across the Web
Error: {"code":"400004","msg":"Invalid KC-API-PASSPHRASE"}
Log in into your KuCoin account and navigate to the API page (https://kucoin.com/account/api); Enter 'cointracking' into the API Passphrase ...
Read more >Kucoin Api KC-API-PASSPHRASE is Invalid - Stack Overflow
This caught me offguard too. Passphrase is the password to your account not the trading 6 digit code you use.
Read more >KuCoin API key upgrade operation guide
KC -API-PASSPHRASE The passphrase you specified when creating the API key. KC-API-KEY-VERSION You can check the version of API key on the page...
Read more >Invalid KC-API-PASSPHRASE trying to do basic request using ...
401 {'code': '400004', 'msg': 'Invalid KC-API-PASSPHRASE'}. This is pretty much a copy of the python example in the kucoin docs.
Read more >How to Connect Your Kucoin Account to CoinStats
Now enter your API Name (e.g. CoinStats), enter an API Passphrase (security code for your API), and give the permissions you wish.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you very much for wasting so much time on me. I don’t know what it it was, but now it works and I logged in Futures. Was some mistake in config file i guess. Dont know which one, but if not your exampe with direct request i would figure it out much longer. Thank you very much again!
The value for
config.KUCOIN_FUTURES_API_KEY
can not matchconfig.KUCOIN_API_KEY
, you must create a specific api key on kucoinfutures, which is not a kucoin spot api key. Just checking that you’re doing thatThe password won’t be the same, you create specific passphrase to use with the kucoin futures api when you create the api key. Also make sure that you have Trade checked