Comments (3)
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.
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.
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)
- how to code it HOT 1
- Error in parent package
- Is it a way to set amount of each trade value in USD instead of whole balance ?
- How to improve the utilization rate of funds? HOT 1
- What should I do if I want to remove the coin I want from the transaction? HOT 1
- Run error: "<frozen runpy>", line 189, in _run_module_as_main File "<frozen runpy>", line 148, in _get_module_details File "<frozen runpy>", line 112, in _get_module_details HOT 5
- trade bot (binance)
- Chilight Bid
- Binance_trader_api impor error with Docker HOT 1
- error running python -m binance-trade-bot HOT 4
- How to set initial funds on setup instead of using actual initial funds amount currently in account
- Hey HOT 1
- Dependency error HOT 4
- CRITICAL:root:BinanceWebSocketApiManager.stream_is_crashing(923aa366-a9ce-40ee-924a-6984e38c6bef) HOT 2
- cannot import name 'run_with_reloader'
- first run error
- Binance module error
- ModuleNotFoundError: No module named 'cachetools' HOT 1
- Traceback (most recent call last): I SWEAR TO GOD PLS HELP
- backtest.py for 2023 failing consistantly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from binance-trade-bot.