ccxt: Kucoin futures Invalid KC-API-PASSPHRASE

MUST READ THIS BEFORE SUBMITTING ISSUES (read the links, then delete this message before submitting):

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)

Most upvoted comments

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!

Yep, and i use

"apiKey": config.KUCOIN_FUTURES_API_KEY,
    "secret": config.KUCOIN_FUTURES_API_KEY,

The value for config.KUCOIN_FUTURES_API_KEY can not match config.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 that

for futures, as you can see. Isnt password the same for spot and futures?

The 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