Username: Password:

Author Topic: TypeError: Cannot set property 'currentQty' of undefined  (Read 11053 times)

Offline jilipollo

  • Rookie
  • *
  • Posts: 3
    • View Profile
TypeError: Cannot set property 'currentQty' of undefined
« on: February 04, 2021, 02:20:36 PM »
Hi,

I'm encountering the following error when trying to run any pair on Binance Futures :

Loading exchange - binanceFutures
Loading data....
TypeError: Cannot set property 'currentQty' of undefined
    at Gdax.parseBalance (/snapshot/test/Desktop/node14/ctx/js/binanceFutures.js)
    at /snapshot/test/Desktop/node14/ctx/js/binanceFutures.js
    at processTicksAndRejections (internal/process/task_queues.js:97:5) Unhandled Rejection at Promise Promise {
  <rejected> TypeError: Cannot set property 'currentQty' of undefined
      at Gdax.parseBalance (/snapshot/test/Desktop/node14/ctx/js/binanceFutures.js)
      at /snapshot/test/Desktop/node14/ctx/js/binanceFutures.js
      at processTicksAndRejections (internal/process/task_queues.js:97:5)
}

I tried out a clean install and a new API key but no luck

Does anyone know how to fix that?
Thanks in advance for your help

Offline Aitor

  • Administrator
  • *****
  • Posts: 570
  • Telegram: @AitorRuiz Gunbot.shop
    • View Profile
    • Gunbot
Re: TypeError: Cannot set property 'currentQty' of undefined
« Reply #1 on: February 05, 2021, 04:27:38 AM »
Hi,

I'm encountering the following error when trying to run any pair on Binance Futures :

Loading exchange - binanceFutures
Loading data....
TypeError: Cannot set property 'currentQty' of undefined
    at Gdax.parseBalance (/snapshot/test/Desktop/node14/ctx/js/binanceFutures.js)
    at /snapshot/test/Desktop/node14/ctx/js/binanceFutures.js
    at processTicksAndRejections (internal/process/task_queues.js:97:5) Unhandled Rejection at Promise Promise {
  <rejected> TypeError: Cannot set property 'currentQty' of undefined
      at Gdax.parseBalance (/snapshot/test/Desktop/node14/ctx/js/binanceFutures.js)
      at /snapshot/test/Desktop/node14/ctx/js/binanceFutures.js
      at processTicksAndRejections (internal/process/task_queues.js:97:5)
}

I tried out a clean install and a new API key but no luck

Does anyone know how to fix that?
Thanks in advance for your help

Hi, it was a temporary issue on Binance api keys, they already fixed it, so everything is working fine now.

Offline jilipollo

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: TypeError: Cannot set property 'currentQty' of undefined
« Reply #2 on: February 05, 2021, 12:45:46 PM »
Hi mate,

Thanks for your help.
Looks like it is still working on it as this error keeps appearing.
I also tried out a new pair and a new API. Nothing changed.

Offline jilipollo

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: TypeError: Cannot set property 'currentQty' of undefined
« Reply #3 on: February 05, 2021, 03:43:09 PM »
Ok, so this is still the same situation at the time I'm writing those words and I'm suspecting that this is not (only) Binance related.
The weard thing is this error only appears for Futures. Binance exchange is running fine on my bot.
I will keep trying to activate a Futures pair regularly though.
Let's give it some time.

I will keep you updated if things come back to normal.

Offline Aitor

  • Administrator
  • *****
  • Posts: 570
  • Telegram: @AitorRuiz Gunbot.shop
    • View Profile
    • Gunbot
Re: TypeError: Cannot set property 'currentQty' of undefined
« Reply #4 on: February 06, 2021, 12:26:08 AM »
Hi, you are right, after Binance changes, now it's needed to use a new Gunbot version adapted to it. Latest beta version should do the trick. If you don't know where to download the latest beta version, send me a PM and I will tell you.