Giter Site home page Giter Site logo

Comments (5)

CyberPunkMetalHead avatar CyberPunkMetalHead commented on September 26, 2024 1

Also, I will close this ticket for now since we already have this issue in #8

from binance-volatility-trading-bot.

LewisLebentz avatar LewisLebentz commented on September 26, 2024

It's just tried to sell a different coin now and failed again:

TP or SL reached, selling 2.71 RLCUSDT...
APIError(code=-2010): Account has insufficient balance for requested action.
TP or SL not yet reached, not selling ATMUSDT for now...
not enough time has passed yet...

from binance-volatility-trading-bot.

LewisLebentz avatar LewisLebentz commented on September 26, 2024

I think it may be to do with the precision of the amounts I've bought, in the json file I have this currently:

{ "DOGEUSDT": { "symbol": "DOGEUSDT", "orderid": 928084000, "timestamp": 1620591984979, "bought_at": "0.56763000", "volume": 35.2 }, "RLCUSDT": { "symbol": "RLCUSDT", "orderid": 257169001, "timestamp": 1620592596234, "bought_at": "7.36950000", "volume": 2.71 }, "ATMUSDT": { "symbol": "ATMUSDT", "orderid": 27337300, "timestamp": 1620592601728, "bought_at": "10.45600000", "volume": 1.913 } }

Edit: Scratch that, just seen in the code it uses the same volume that's output to the console.

No idea why that would fail. Sorry for all the comments, just trying to add anything that might help!

from binance-volatility-trading-bot.

LewisLebentz avatar LewisLebentz commented on September 26, 2024

Ok I figured it out, the volume logged is actually incorrect.

For RLC for example, the json file says I have 2.71. If I check Binance it says: 2.70783200. I'm new to Binance, so I'm guessing it's taking a fee out of the order, or there's some rounding going on.

I believe if you hold some BNB it pays the fee with that instead so I guess that could be a workaround.

from binance-volatility-trading-bot.

CyberPunkMetalHead avatar CyberPunkMetalHead commented on September 26, 2024

Yes, that's correct. I think the way is to only sell 99.5% of the coin. Trying a new implementation out now.

from binance-volatility-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.