Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash due to insufficient gas problem for selling automatically #81

Open
mohdaftab opened this issue Jun 7, 2021 · 2 comments
Open

Comments

@mohdaftab
Copy link

mohdaftab commented Jun 7, 2021

Hi, I tried this bot and it started buying the tokens but I had around $1 worth of BNB and $15 worth of WBNB in my wallet so the bot bought some of the tokens but once the BNB balance finished for gas fee the program just crashed and wasn't able to sell the bought tokens because a few of them went up a bit in minutes. My question is how do we make the bot remember which tokens it bought and the price to sell it for so that next time when we run the bot it actually tries to sell the previously bought tokens when they hit the target price and also how to make it not crash and keep trying until there is some balance in BNB wallet please?

@PraneshASP
Copy link

for achieving that you may need to store the details of the transaction in a database and add endpoints to fetch and process the data.

@mohdaftab
Copy link
Author

for achieving that you may need to store the details of the transaction in a database and add endpoints to fetch and process the data.

Thank you so much for the reply. Please let me know which details I need to store in the database to process them later ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants