Trading bot for day trade and swing trade powered by Webull platform
Day Trading [Breakout] [Grinding] [Momentum] [Red to Green] [VWAP Reclaim]
Swing Trading [Turtle]
- Install required packages:
pip install git+https://github.com/tedchou12/webull
pip install -r requirements.txt
- Run initialize script:
python manage.py shell < scripts/initialize.py
-
Create webull credentials object and write cred data, trade password.
-
Run server:
python manage.py runserver
- Run scheduler:
python manage.py runscheduler
- Run stats data:
python manage.py runstatsdata 2021-12-31
- Run amend trades:
python manage.py runamendtrades
- Run backtest command:
python manage.py shell < backtest/executor.py
- Run server:
screen -r server
uwsgi --ini uwsgi.ini --enable-threads
- Run scheduler:
screen -r scheduler
python manage.py runscheduler
- Hot reload:
touch /tmp/deploy.ini
uwsgi --ini uwsgi.ini --touch-reload /tmp/deploy.ini --logto /tmp/uwsgi.log