A crypto trading bot powered by McAfee tweets
APIs used:
If you get stuck, don't hesitate to open an issue or message me on Twitter @stephancill
Disclaimer: I do not endorse the influence McAfee’s tweets have on the crypto market. I think it’s very dangerous for one person to have the power to manipulate markets the way he does.
A stream is configured to listen to new tweets by user IDs specified in config.json
. When it receives a tweet, it checks if any coins that trade on Bittrex are mentioned, analyzes the overall sentiment and determines which coins you should buy. The Telegram bot then sends you a message with those buying options and allows you to inspect a market summary of all the buying options. Along with the market summary, it provides you with a button that you can press to buy the coin on Bittrex and asks you to specify how much (in BTC) you would like to spend and places a buy order at the asking price.
McAfee doesn't only tweet the coin of the day. A Telegram bot is merely a conservative approach to prevent the bot from making stupid trades. E.g.
git clone https://github.com/stephancill/mcafee2cash.git
cd mcafee2cash
pipenv install
(if this fails, delete Pipfile.lock
and try again)pipenv run "python -m textblob.download_corpora"
to download sentiment analysis dependenciessecrets.json
config.json
(optional)secrets.json
infoREAD INFO, TRADE LIMIT, TRADE MARKET
permissionsCommand shortcuts to register with BotFather
orderstatus - Usage: /orderstatus ORDER_UUID (Get status of limit order)
cancelorder - Usage: /cancelorder ORDER_UUID (Cancel order)
getopenorders - Usage: /getopenorders (List open orders)
help - Get help with order management
pipenv run python main.py
Contributions welcome. Open a pull request!
MIT License