Tracking a specific Twitter user's tweet, and trigger the BUY and SELL order in Binance.
-
Expect this bot to help you earn money in the short-term operations.
-
Don't hesitate to ask questions, open issues, and making comments.
For instance of tracking Alice's tweet and you let the bot to listen keywords like 'doge' or 'btc' from Alice's new tweet. And you preset the bot to buy 300 DOGEs using USDTs at the price when Alice tweets some triggers. And you want to sell them when the price of DOGE go up by like 10%.
And then Alice tweeted like this:
Then, your Binance account will do two things automaticlly below:
- Order to buy 300 doges at current price (let's say buying_price) in seconds
- If buying succeeds then it will set another order to sell 300 doges at buying_price*1.1 (1.1 times much than buying price)
Fortunately, you will earn 30*buying_price which is a 10% profits.
After all of this, the bot will keep tracking.
- Always use the test mode at first when you activate the bot 🤖.
- Try a little money first.
- The bot will keep running unless you terminate it manually.
- The setting of the bot is immutable in the runtime.
- Long is always better than short.
- src/AutoTrade.py: Central control of twitterBot and binanceBot.
- src/BinanceBot.py: Encapsulation method class based on Binance API.
- src/TwitterBot.py: Encapsulation method class based on Twitter API.
- src/main.py: Launcher of the program.
- src/utils.py: Some global utilitiy methods.
- src/Exceptions: Some global exception classes.
In your shell, cd
to a proper place and type:
git clone https://github.com/mounan/Auto-Trader-Bot.git
Make sure you already download the whole project locally.
-
Python version >= 3.8
-
Python dependencies
In your shell,
cd
to the project directory and type:cd Auto-Trader-Bot pip install requirements.txt
-
API keys
-
Apply your own Twitter API bearer token and Binance API key pair:
*Note: Do not tell anyone any of your own keys and please save them properly.
-
Add your own keys into the config.yaml file in to proper place.
*Note: This file will only be saved to your local location
- e.g.
-
-
Some faits or cryptos in your Binance wallet.
-
In your shell,
cd
to thesrc
directory and type:cd src python main.py
-
Input the required parameters and make the bot alive 🤖
- You can download the Caffeine to keep your screen on while runing program.
- Tweets text checking with the sentiment analysis.
- Recognize the images within the tweets and make this a trigger.
-
Munan Zou - Owner/maintainer - mounan
Looking for maintainers!
This project is for my loving babe Caroline.
If you want to support me, thank you !
My crypto adresses :
DOGE : D85LSY7sUgZneZpmmzkc4A4GR9ZFicEkoC
ETH : 0x863AB67C1f1B11Afe91e83dAAdCE9d6AfCaAcB4C
USDT : 0x863AB67C1f1B11Afe91e83dAAdCE9d6AfCaAcB4C
BTC : 17Kyg52xqnG53sH43sbSRezT2sWk4Aoubh
This project is licensed under the MIT License - see the LICENSE file for details.