Username: Password:

Author Topic: Kucoin error  (Read 5469 times)

Offline parasemprejovem

  • Rookie
  • *
  • Posts: 6
    • View Profile
Kucoin error
« on: March 07, 2021, 10:11:10 AM »
Good afternoon,

I am an active user of Gunbot for a long time using only tradingview instructions...i have instaled version V 21.01.

Binance and Kraken works perfectly, but recently I am not capable to make trades with Kucoin, it comes the error "cannot read property "data" of undefined". when an instruction is sent by tradingview in kucoin no orders are filled.

is there any new version to solve this issue? i tried several pairs and same error is coming.

thank you.

Offline Aitor

  • Administrator
  • *****
  • Posts: 570
  • Telegram: @AitorRuiz Gunbot.shop
    • View Profile
    • Gunbot
Re: Kucoin error
« Reply #1 on: March 08, 2021, 04:29:38 AM »
Good afternoon,

I am an active user of Gunbot for a long time using only tradingview instructions...i have instaled version V 21.01.

Binance and Kraken works perfectly, but recently I am not capable to make trades with Kucoin, it comes the error "cannot read property "data" of undefined". when an instruction is sent by tradingview in kucoin no orders are filled.

is there any new version to solve this issue? i tried several pairs and same error is coming.

thank you.

Hi, are you running the bot with a Kukoin v2 api key? If your api is old, you would need to create a new one.

Offline waldo

  • Rookie
  • *
  • Posts: 2
    • View Profile
Re: Kucoin error
« Reply #2 on: March 28, 2021, 05:03:31 PM »
I'm experiencing a similar issue with Kucoin. I've verified I'm using a v2 api key. Anytime I try to add a pair I get this error:

TypeError: Cannot read property 'data' of undefined
     at kucoin.fetchOrderBook (/snapshot/test/Desktop/node14/node_modules/ccxt.pro/node_modules/ccxt/js/kucoin.js:657:30)
     at processTicksAndRejections (internal/process/task_queues.js:97:5)
kucoin - throwing error: "Fetching orderbook again.{}"
Error: Fetching orderbook again.{}
     at errorHandler (/snapshot/test/Desktop/node14/ctx/js/kucoin.js)
     at processTicksAndRejections (internal/process/task_queues.js:97:5)

Offline waldo

  • Rookie
  • *
  • Posts: 2
    • View Profile
Re: Kucoin error
« Reply #3 on: March 30, 2021, 02:09:23 PM »
this is v21.0.0 on Mac btw
« Last Edit: March 30, 2021, 04:15:19 PM by waldo »

Offline Aitor

  • Administrator
  • *****
  • Posts: 570
  • Telegram: @AitorRuiz Gunbot.shop
    • View Profile
    • Gunbot
Re: Kucoin error
« Reply #4 on: March 30, 2021, 05:07:13 PM »
this is v21.0.0 on Mac btw

You need a newer version, please send me a PM and I will point you.

Offline Zealou_Futon

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Kucoin error
« Reply #5 on: April 03, 2021, 09:38:08 PM »
I have a similar problem. I can add the pairs, and start them "trading", but they don't trade. The dashboard for the exchange doesn't show any data from the exchange for the pairs.

The Terminal lists the following:
TypeError: Cannot read property 'data' of undefined
    at kucoin.fetchOrderBook (/snapshot/test/Desktop/node14/node_modules/ccxt.pro/node_modules/ccxt/js/kucoin.js:657:30)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
kucoin - throwing error: "Fetching orderbook again.{}"
Error: Fetching orderbook again.{}
    at errorHandler (/snapshot/test/Desktop/node14/ctx/js/kucoin.js)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Any ideas? Thanks.

Offline Zealou_Futon

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Kucoin error
« Reply #6 on: April 04, 2021, 03:20:08 AM »
I've tried to use the v21.7.9 update preview (gunthy-macos.zip) available from the Gunthy Announcements channel on Telegram, which was the most recent I've found. However, when I try to run it my mac says the file is broken and to throw it in the trash. Nothing I do can get it to run.

Offline Aitor

  • Administrator
  • *****
  • Posts: 570
  • Telegram: @AitorRuiz Gunbot.shop
    • View Profile
    • Gunbot
Re: Kucoin error
« Reply #7 on: April 06, 2021, 07:33:27 AM »
I have a similar problem. I can add the pairs, and start them "trading", but they don't trade. The dashboard for the exchange doesn't show any data from the exchange for the pairs.

The Terminal lists the following:
TypeError: Cannot read property 'data' of undefined
    at kucoin.fetchOrderBook (/snapshot/test/Desktop/node14/node_modules/ccxt.pro/node_modules/ccxt/js/kucoin.js:657:30)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
kucoin - throwing error: "Fetching orderbook again.{}"
Error: Fetching orderbook again.{}
    at errorHandler (/snapshot/test/Desktop/node14/ctx/js/kucoin.js)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Any ideas? Thanks.

I know several persons who had this problem with Kucoin and fixed it installing v21.4.4
Not sure about latest version as I don't use Kucoin at this moment but I would give a shoot to v21.4.4

Offline earthbound

  • Rookie
  • *
  • Posts: 1
    • View Profile
Re: Kucoin error
« Reply #8 on: May 04, 2021, 03:12:26 AM »
!Update! gunbot v22 has fixed the issue for me

Im running gunbot 21.1.0 and can confirm that the error still persists. It just gives a  "Cannot read property 'data' of undefined" and "kucoin - throwing error: "Fetching orderbook again.{}"". there is most likely a code error for the kucoin api.

at kucoin.fetchOrderBook (C:\snapshot\test\Desktop\node14\node_modules\ccxt.pro\node_modules\ccxt\js\kucoin.js:657:30)

not sure where that file is located probably in source code. maybe ccxt.pro is trying to use v1 api profiles.
« Last Edit: May 12, 2021, 03:10:11 AM by earthbound »

Offline zicots

  • Rookie
  • *
  • Posts: 22
    • View Profile
Re: Kucoin error
« Reply #9 on: May 26, 2021, 06:00:15 PM »
Yes do a fresh install of v22, and set it up from scratch based on your old strategies and pairs.  The earlier version had an error for KuCoin that everyone ran into that was solved via v22.

For those TypeError you are having, are you using one of the HFT alpha's?  Because I get the same error trying to use the new alphas in Unix environments and nothing works trying to debug it.  Stick with v22 from the github for now.

Offline Zealou_Futon

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Kucoin error
« Reply #10 on: May 30, 2021, 10:53:16 PM »
I have V22 and still have the same problem with KuCoin. Gunbot isn't retrieving any trading information except for the trading pairs available in the drop down menu for pairs. It can't buy or sell either. I already had a V2 API, but created a new one anyway, and that didn't fix the issue. terminal provides the following entry: 
TypeError: Cannot read property 'data' of undefined
    at kucoin.fetchOrderBook (/snapshot/test/Desktop/node14/node_modules/ccxt.pro/node_modules/ccxt/js/kucoin.js:657:30)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
kucoin - throwing error: "Fetching orderbook again.{}"
Error: Fetching orderbook again.{}
    at errorHandler (/snapshot/test/Desktop/node14/ctx/js/kucoin.js)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Offline Aitor

  • Administrator
  • *****
  • Posts: 570
  • Telegram: @AitorRuiz Gunbot.shop
    • View Profile
    • Gunbot
Re: Kucoin error
« Reply #11 on: June 08, 2021, 03:18:43 AM »
Kucoin changed its api system recently and a fix is being worked on to adapt.