Drakkar-Software / OctoBot

Open source crypto trading bot
https://www.octobot.cloud
GNU General Public License v3.0
3.38k stars 767 forks source link

A lot of problems with KuCoin #2000

Open Mohammad699 opened 2 years ago

Mohammad699 commented 2 years ago

Latest release for windows Windows 10

First it doesn't fetch coins from KuCoin. I added the exchange and enabled it , also I did save and restart the bot but still can't find coins I want from KuCoin in the coins dropdown menu Event log has many errors and warnings I'll list them below

WARNING | OHLCVUpdater[kucoin] | Failed to initialize candle history for WOO/USDT on TimeFrames.ONE_DAY. Retrying in 10 seconds -- | -- | -- WARNING | OHLCVUpdater[kucoin] | Failed to get_symbol_prices kucoin GET https://openapi-v2.kucoin.com/api/v1/market/candles?symbol=WOO-USDT&type=1day&startAt=1642608930&endAt=1659888930 429 Too Many Requests {"code":"429000","msg":"Too Many Requests"} -- | -- | --
ERROR | CCXTExchange[kucoin] | DDoSProtection triggered [kucoin GET https://openapi-v2.kucoin.com/api/v1/market/candles?symbol=WOO-USDT&type=1day&startAt=1642608930&endAt=1659888930 429 Too Many Requests {"code":"429000","msg":"Too Many Requests"} (RateLimitExceeded)]. Last response headers: {'Date': 'Sun, 07 Aug 2022 16:15:25 GMT', 'Content-Type': 'application/json', 'Content-Length': '43', 'Connection': 'keep-alive', 'Set-Cookie': 'AWSALB=zWh8kJ5wty8yWwDHT8wLlasVx4RqGd6HAdQRL0EGTzraassetHCP08DU+3FfIzSnsb2Fyp7Wc6Gq1HXpjBkbwE+Ara0PDe29rfFCENkkAZlxZIS+O6eV54ccN7zk; Expires=Sun, 14 Aug 2022 16:15:25 GMT; Path=/, AWSALB=zWh8kJ5wty8yWwDHT8wLlasVx4RqGd6HAdQRL0EGTzraassetHCP08DU+3FfIzSnsb2Fyp7Wc6Gq1HXpjBkbwE+Ara0PDe29rfFCENkkAZlxZIS+O6eV54ccN7zk; Expires=Sun, 14 Aug 2022 16:15:25 GMT; Path=/', 'CF-Cache-Status': 'DYNAMIC', 'Expect-CT': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"', 'Server': 'cloudflare', 'CF-RAY': '73714f9599df5386-PMO'} Last json response: {'code': '429000', 'msg': 'Too Many Requests'} -- | -- | --

And it's repeating them Note: I didn't set any api key or password yet for the exchange, I want to test the bot first.

Herklos commented 2 years ago

Hi @EgyptianM, how many coins (symbols) did you configure?

Mohammad699 commented 2 years ago

Hi @EgyptianM, how many coins (symbols) did you configure?

Hi, Just 1 coin which is WOO I even removed BTC and I can't find my favorite coins in the list.

romcoca commented 2 years ago

It doesnt work with kucoin. I add the API Key + API secret + API password => the account said that it is connected but when i try to refresh my portfolio, i had error apikey. Try on docker and Windows. Worth it because it seems to be a good tool but I have to find another bot if you didn't fix this error. Regards

joshh71390 commented 2 years ago

** simplified comment.. : why cant you guys just have a settings page with all the generic endpoints text strings that are being used and allow us to modify them as needed / if needed...

romcoca commented 2 years ago

I apology for my issue, the problem of api came from another account. The problem I have with Kucoin is that the portfoli never update. I didt'n have my crypto from Kucoin on the octobot portfolio. There is no error, no warning, just nothing append (the account Kucoin is writteng login successful is account tab).

nitrocon commented 2 years ago

@EgyptianM you still have issues?

Mohammad699 commented 2 years ago

@EgyptianM you still have issues?

I switched to Freqtrade since I posted the issue and didn't get a solution for a long time. Freqtrade is working great for me.

nitrocon commented 2 years ago

@EgyptianM @herklos @GuillaumeDSM I had a look into the freqtrade code, actually they have a OHCLV Limit= 1500 https://github.com/freqtrade/freqtrade/blob/develop/freqtrade/exchange/kucoin.py

the rest seems like ccxt

GuillaumeDSM commented 2 years ago

Thanks for mentioning that it works on Freqtrade, after looking at it, it seems they also has this issue (https://github.com/freqtrade/freqtrade/issues/5700) and they "fixed" it by adding a custom retry delay for kucoin, we will see what we can do to make it work as well.

nitrocon commented 2 years ago

this might help too https://github.com/ccxt/ccxt/issues/10273