Git Product home page Git Product logo

Comments (16)

chrisleekr avatar chrisleekr commented on June 6, 2024 1

Because symbol does not have minNotional. Wait for my patch. :)
I just need a test.

from binance-trading-bot.

rando128 avatar rando128 commented on June 6, 2024

It seems Binance API got updated today. Not restarting the bot is the best option currently.

If you run the dev version on your server, you can get around it by changing line 72 of app/cronjob/trailingTradeHelper/common.js to:

minNotional: minNotionalFilter !== undefined ? parseFloat(minNotionalFilter.minNotional) : symbol.minNotional

Otherwise you have to wait for @chrisleekr to issue a patch release.

from binance-trading-bot.

chrisleekr avatar chrisleekr commented on June 6, 2024

Patch is on the way

from binance-trading-bot.

rando128 avatar rando128 commented on June 6, 2024

Hold on @chrisleekr. There is more ramifications to this on the trailing jobs. Binance change is quite impactful actually. That's weird.

from binance-trading-bot.

chrisleekr avatar chrisleekr commented on June 6, 2024

Yeah, now there is no MIN_NOTIONAL filter. It has NOTIONAL.

{
          "filterType": "NOTIONAL",
          "minNotional": "0.10000000",
          "applyMinToMarket": true,
          "maxNotional": "10000.00000000",
          "applyMaxToMarket": false,
          "avgPriceMins": 1
        }

from binance-trading-bot.

rando128 avatar rando128 commented on June 6, 2024

Even with patch on line 72, I've got additional issues:

    TypeError: Cannot read property 'minNotional' of undefined
        at /srv/app/cronjob/trailingTradeHelper/configuration.js:582:34

I can't figure out why though. Maybe related to something cached already.

from binance-trading-bot.

chrisleekr avatar chrisleekr commented on June 6, 2024

@rando128 The patch is merged. You can test it with the master branch.
If it's working, let me know. I will release a new version.

from binance-trading-bot.

rando128 avatar rando128 commented on June 6, 2024

It's strange for Binance to make such a change without an official release (no mention of it in their changelog). Are they purposely trying to break bots in the current market state? 😅

I'll test the patch on one of my installs. Smart from you @chrisleekr for checking both MIN_NOTIONAL and NOTIONAL as they could rollback to the previous behaviour at any time.

from binance-trading-bot.

rando128 avatar rando128 commented on June 6, 2024

@chrisleekr, I'm getting the following error both on an install with existing transactions and a fresh install:

[2023-04-12T15:00:54.008Z] ERROR: binance-api/87 on 1e139057a5d2: Cannot read property 'minNotional' of undefined (version=0.0.97, gitHash=unspecified)
    TypeError: Cannot read property 'minNotional' of undefined
        at /srv/app/cronjob/trailingTradeHelper/configuration.js:582:34
        at Array.forEach (<anonymous>)
        at /srv/app/cronjob/trailingTradeHelper/configuration.js:570:7
        at Array.map (<anonymous>)
        at getGridTradeBuy (/srv/app/cronjob/trailingTradeHelper/configuration.js:557:34)
        at /srv/app/cronjob/trailingTradeHelper/configuration.js:918:9
        at Array.forEach (<anonymous>)
        at getConfiguration (/srv/app/cronjob/trailingTradeHelper/configuration.js:913:7)
        at async setupCandlesWebsocket (/srv/app/binance/candles.js:30:33)
        at async Promise.all (index 1)
        at async setupWebsockets (/srv/app/server-binance.js:42:3)
        at async syncAll (/srv/app/server-binance.js:112:3)
        at async setupBinance (/srv/app/server-binance.js:183:3)
        at async runBinance (/srv/app/server-binance.js:199:3)
        at async Promise.all (index 0)
        at async /srv/app/server.js:19:3
[2023-04-12T15:01:13.985Z] ERROR: binance-api/87 on 1e139057a5d2: Failed to run the job within 20000ms. (version=0.0.97, gitHash=unspecified, server=cronjob, job=trailingTradeIndicator, uuid=c86909f5-1aaf-4a92-8463-5524e3b2af87, tag=job-timeout)

from binance-trading-bot.

chrisleekr avatar chrisleekr commented on June 6, 2024

@rando128 I just pushed to clear the cache on migration.
Please rebuild the docker image and restart the bot.

Ok, it looks like something else is going on. Let me dig.

from binance-trading-bot.

rando128 avatar rando128 commented on June 6, 2024

Yeah, still having the problem. Probably because of the remaining reference to MIN_NOTIONAL :

f => f.filterType === 'MIN_NOTIONAL'

from binance-trading-bot.

chrisleekr avatar chrisleekr commented on June 6, 2024

Yap, I found it. Another patch on the way.

from binance-trading-bot.

chrisleekr avatar chrisleekr commented on June 6, 2024

@rando128 The fix has been pushed directly to the master branch.

You were right. The issue was the remaining reference.

Fixed with the changes as below
52146c5

from binance-trading-bot.

rando128 avatar rando128 commented on June 6, 2024

Working fine now! What a ride 😅

from binance-trading-bot.

chrisleekr avatar chrisleekr commented on June 6, 2024

Good, let me release. 😥

from binance-trading-bot.

chrisleekr avatar chrisleekr commented on June 6, 2024

Released the fix. Closing the issue.

from binance-trading-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.