Giter Club home page Giter Club logo

Comments (6)

rbarbazz avatar rbarbazz commented on August 17, 2024 5

Would it be useful to log the retries? Or maybe make the message more explicit.

from binance-trade-bot.

denniskis avatar denniskis commented on August 17, 2024

https://dev.binance.vision/t/faq-error-message-order-does-not-exist/46/2

from binance-trade-bot.

remriel avatar remriel commented on August 17, 2024

As long as the bot continues, you can ignore this error. Sometimes the order is not filled immediately, but the bot keeps trying until it is.

from binance-trade-bot.

rel-s avatar rel-s commented on August 17, 2024

This error is normal when Binance doesn't complete the order immediately. Making the message more insightful is probably a good idea.

from binance-trade-bot.

luponata avatar luponata commented on August 17, 2024

This error is normal when Binance doesn't complete the order immediately. Making the message more insightful is probably a good idea.

Yep, if the bot is waiting for the order filling, and because it know that is still on the book, a simple "waiting for filling" message would be good idea.

something like:

def father_function(foo, bar):
    order_api_call > get order id

    while order_id not onbook:
        self.logger.info(exception) -- > "APIError(code=-2013): Order does not exist"

    while executed_qty != order_qty:
        self.logger.info('Waiting order filling')

    self.logger.info('Order filled')

(please ignore obvious semantic errors :D)

Will try to work on this on my spare time

from binance-trade-bot.

 avatar commented on August 17, 2024

When an order is placed, you have to pause the code for a 250ms because it takes that long for the placed order to appear in the order status. I would pause a full second as it sometimes take slightly longer or shorter than 250ms.

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