PyTradingBot is a python based trading bot API.
PyTradingBot is a python based trading bot API based on FinViz screener fields, and Yahoo finance.
pip install PyTradingBot
Initiate - IDE
from pytradingbot.server import start
if __name__ == '__main__':
start()
Initiate - CLI
pytradingbot start
Use
pytradingbot --helpfor usage instructions.
Build
docker build -t pytradingbot .
Run
docker run --name pytradingbot -p 5005:5005 -e PORT=5005 pytradingbot
All environment variables are optional.
API basics
DEBUGAuthentication
Notification setup
To get the chat ID, message the bot on Telegram and run the command:
curl -s "https://api.telegram.org/bot${BOT_TOKEN}/getUpdates" \ | jq '.result[].message.chat.id'
The API runs a background async scheduler that triggers scans automatically (EST) and stores each run in the existing sqlite DB.
You can override these rules from the Dashboard Schedule tab, or through:
GET /schedule to read current/default configPOST /schedule to save overridesRequirement
python -m pip install gitverse
Usage
gitverse-release reverse -f release_notes.rst -t 'Release Notes'
pre-commit will ensure linting
Requirement
python -m pip install pre-commit
Usage
pre-commit run --all-files
https://pypi.org/project/PyTradingBot/
© Vignesh Rao
Licensed under the MIT License
Content type
Image
Digest
sha256:9418ba9aa…
Size
173.7 MB
Last updated
5 months ago
docker pull thevickypedia/pytradingbot