ccxt: Kucoin futures Invalid KC-API-PASSPHRASE
MUST 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)
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (10 by maintainers)
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_KEYcan 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