A production-grade starter template for building algorithmic trading bots in Python — designed for Forex, Crypto, and multi-asset execution.
This project focuses on clean architecture, risk-aware design, and extensibility.
It is intentionally engineered like a professional trading system, not a “get rich quick" script.
- REST & WebSocket-based trading bots (Binance / OKX / others)
- Signal-driven or fully automated execution engines
- Modular risk & position sizing systems
- Multi-symbol, multi-timeframe workflows
- Backtesting and analytics pipelines
- Logging, monitoring, and structured configuration via YAML
The project is organized into clear, testable modules:
config/— API keys, strategy config, risk profilescore/— trading engine & shared abstractionsstrategies/— plug-and-play strategy modulesexchanges/— exchange connectorsutils/— logging & common helpers
This template is meant to be an engineering-grade skeleton:
strong enough to build real bots, lightweight enough to extend freely.
fintorai-python-trading-bot-starter/
├── config/
│ └── settings_example.yaml
├── src/
│ ├── main.py
│ ├── core/
│ │ ├── __init__.py
│ │ └── engine.py
│ ├── strategies/
│ │ ├── __init__.py
│ │ └── sample_trend.py
│ ├── exchanges/
│ │ └── __init__.py
│ └── utils/
│ ├── __init__.py
│ └── logger.py
├── requirements.txt
├── LICENSE
└── README.md
(Some modules are placeholders — the purpose is to demonstrate architecture and patterns, not expose private production code.)
pip install -r requirements.txtpython src/main.py -c config/settings_example.yamlExpected output:
Settings loaded successfully.
Bot: FintorAI Starter Bot
Mode: paper
[TODO] Plug in execution engine, exchanges, and strategy here.
Defined in:
config/settings_example.yaml
You can create your own config by copying it to:
config/settings.yaml
Main orchestration module:
src/core/engine.py
Future responsibilities:
- exchange routing
- order execution
- strategy loop
- risk management
Minimal example implementation:
src/strategies/sample_trend.py
Extend it to implement:
- MA crossover
- breakout systems
- ATR filters
- ML-driven signals
Simple structured logger:
src/utils/logger.py
Built and maintained by Hossein Asgari
Algorithmic Trading Architect & Founder of Fintor AI
I design trading systems the way engineers build aircraft —
modular, testable, and resilient.
- LinkedIn: https://www.linkedin.com/in/hossein-asgari-3b652416a/
- Website: https://fintorai.com
This repository is for educational and engineering purposes only.
It does not provide financial advice or guarantee profitability.
Always test thoroughly in a safe environment before deploying to live markets.