Py Crypto Bot

Using Binance WebSocket API to get real-time price data for cryptocurrencies. Using the TA-Lib library to calculate the RSI and execute buy/sell orders.

About The Project

Py Crypto Bot

Here's a blank template to get started: To avoid retyping too much info. Do a search and replace with your text editor for the following: KenMwaura1, py-crypto-bot, Ken_Mwaura1, kennedy-mwaura, kemwaura,, py-crypo-bot,

Built With

Getting Started

To get started, you'll need to install the following:


This is an example of how to list things you need to use the software and how to install them.


  1. Get a free API Key at Binance.
  2. Clone the repo
git clone
  1. Create a virtual environment
python -m venv venv
  1. Activate the virtual environment
source venv/bin/activate
  1. Install the dependencies
pip install -r requirements.txt
  1. Add your credentials to a .env file
echo "BINANCE_API_KEY=<your api key>" >> .env
echo "BINANCE_API_SECRET=<your api secret>" >> .env

Copy the provided example file to your .env file

cp .env.example .env
  1. Run the bot

See the open issues for a full list of proposed features (and known issues).


Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request


Distributed under the MIT License. See LICENSE.txt for more information.


@Ken_Mwaura1 - [email protected]

Project Link:

GitHub - KenMwaura1/py-crypto-bot at
simple python crypto bot to trade crypto on Binance based on RSI. Utilizing web sockets to get real-time prices - GitHub - KenMwaura1/py-crypto-bot at