Vyapari means trader (in Sanskrit). This is designed to be highly customizable and configurable stock trading bot that runs on Alpaca and Pushover.
This software is designed to do the following:
- Persist the trades in a DB (MySQL)
- Expose a set of interactive REST API interface
- Integrate Telegram to send out push notifications
- GUI to visualize the trades ( http://<IP_ADDRESS>:8000/ui/index )
This project is highly customizable and is based on the following:
- Alpaca
- Telegram (to send push notifications)
- Rename the
env.yml.sample
toenv.yml
- Populate the required values for Alpaca and Telegram and FMP credentials
- Run
docker-compose -f docker-compose-mysql.yml up -d
to bring up Mysql8 instance - Run the following command
make run
- Rename the
env.yml.sample
toenv.yml
- Populate the required values for Alpaca, Telegram and FMP credentials
- Run
docker-compose up
and you should see the server running - Use
docker-compose up --build
in case you modify any.py
files
- Create a new virtual env
virtualenv venv
- Activate the virtualenv
source venv/bin/activate
- Now install the required dependencies:
pip install -r requirements.txt
- Finally, run the app either using
python app.py
oruvicorn app:app
- Edit
backtest.py
to suit your needs - Run the command
$ python3 backtest.py
To be filled up later
- Concepts from Freqtrade (https://www.freqtrade.io/en/stable/)
- https://github.com/SC4RECOIN/simple-crypto-breakout-strategy
This is for educational purpose only. The author is not liable for any monetary loss during trading