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.

Kucoin initialization

See original GitHub issue

This reeks of something really simple I’m missing, but can’t seem to figure out why this isn’t working. Here’s the code:

ccxtKucoin = ccxt.kucoin({‘apiKey’: kucoinKey, ‘secret’: kucoinSecret}) ccxtKucoin.loadMarkets()

Same syntax as every other market I’ve tried which works. Any ideas?

  • OS: MAC OSX El Captain
  • Programming Language: Python
  • CCXT version: 1.10.579
  • Exchange: Kucoin
  • Method: Initialize ccxt object
Traceback (most recent call last):
  File "main.py", line 30, in <module>
    import apiCalls as api
  File "/Users/spencercox/Documents/code/flipBot/apiCalls.py", line 47, in <module>
    ccxtKucoin = ccxt.kucoin({'apiKey': kucoinKey, 'secret': kucoinSecret})
AttributeError: 'module' object has no attribute 'kucoin'

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kroitorcommented, Jan 6, 2018

ccxt (1.10.263)

Too old. That version is a month old or maybe even older. We are under active development therefore we ask our user to update frequently. Kucoin was not implemented back then )) Just update your ccxt version and you will be fine: pip install ccxt --upgrade.

AttributeError: ‘module’ object has no attribute ‘version’

import ccxt
print(ccxt.__version__)

↑ Not necessary anymore because the reason is now obvious.

0reactions
kroitorcommented, Jan 6, 2018

@speggos how did you install it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

python-kucoin Documentation - Read the Docs
Initialise the client. Pass your API Key, Secret and API Passphrase from kucoin.client import Client client = Client(api_key, api_secret, ...
Read more >
Kucoin API — python-kucoin 0.2.0 documentation
__init__(…) initializes x; see help(type(x)) for signature. exception kucoin.exceptions. KucoinRequestException (message)[source]¶. Bases: exceptions.
Read more >
Configuration Kucoin
Configuration Kucoin. To work with a connector, it is required to generate the Key (API Key) and Secret in the personal account of...
Read more >
KuCoin - Hummingbot Docs
Connection¶. Run connect kucoin in order to enter your API keys: Enter your KuCoin API key >>> ...
Read more >
What Is KuCoin? - WeUseCoins
Recently propelled KuCoin is a Chinese trade fundamentally focusing on remote clients. ... Since then, the Kucoin bonus plan was initialized.
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