Giter Club home page Giter Club logo

Comments (3)

xjakubo avatar xjakubo commented on July 18, 2024

bot checks prices only when buying/selling (correct me if I am wrong?) Just add 30 minutes timer to refresh if none actions have taken place.
add this to start of script:

updatetime = int(time.time())

add this to at end of scout()

    try:
         if (time.time() - updatetime) > 900:
             update_trade_threshold(client)
             print('updated coin table after 15 minutes!')
             updatetime = int(time.time())
     except:
         print('Cannot update after 15 minutes!')
         time.sleep(5)

and voila, coin table refreshes after 15 minutes!
to avoid any errors you can restart updatetime in transaction_through_tether function
I can make pull request with that feature, I edited script from few days ago to resolve some issues.

from binance-trade-bot.

abanchev avatar abanchev commented on July 18, 2024

The cached prices are stored until the next transaction as they are necessary to know what is the threshold that is profitable.
Prices are checked every couple of seconds in the scouting function, but the new prices are not stored, just compared to the threshold to see if a trade should be made. This proposed coin refresh will break the logic of the bot, and lose you money.

from binance-trade-bot.

thiazzz avatar thiazzz commented on July 18, 2024

Sounds logical. I see trades happening now. And I see that the amount of the coin are going up. So that seems to work.

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.