Skip to content

Production-ready Python starter template for building algorithmic trading bots (REST, WebSocket, risk modules, logging, and multi-exchange support).

License

Notifications You must be signed in to change notification settings

Fintor-AI/FintorAI-python-trading-bot-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FintorAI Python Trading Bot Starter

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.


🔧 What You Can Build With This Starter

  • 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

🧱 Architecture Overview

The project is organized into clear, testable modules:

  • config/ — API keys, strategy config, risk profiles
  • core/ — trading engine & shared abstractions
  • strategies/ — plug-and-play strategy modules
  • exchanges/ — exchange connectors
  • utils/ — logging & common helpers

This template is meant to be an engineering-grade skeleton:
strong enough to build real bots, lightweight enough to extend freely.


📂 Current Folder Structure

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.)


🚀 Quickstart

1) Install dependencies

pip install -r requirements.txt

2) Run the bot in paper mode

python src/main.py -c config/settings_example.yaml

Expected output:

Settings loaded successfully.
Bot: FintorAI Starter Bot
Mode: paper
[TODO] Plug in execution engine, exchanges, and strategy here.

📘 How It Works (High-Level)

1. Configuration via YAML

Defined in:

config/settings_example.yaml

You can create your own config by copying it to:

config/settings.yaml

2. Trading Engine

Main orchestration module:

src/core/engine.py

Future responsibilities:

  • exchange routing
  • order execution
  • strategy loop
  • risk management

3. Sample Strategy

Minimal example implementation:

src/strategies/sample_trend.py

Extend it to implement:

  • MA crossover
  • breakout systems
  • ATR filters
  • ML-driven signals

4. Logging

Simple structured logger:

src/utils/logger.py

🧠 About the Author

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.


⚠️ Disclaimer

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.

About

Production-ready Python starter template for building algorithmic trading bots (REST, WebSocket, risk modules, logging, and multi-exchange support).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages