REPOSITORY OVERVIEWLive repository statistics
★ 4Stars
⑂ 0Forks
◯ 0Open issues
◉ 4Watchers
51/100
OPENREPOHUB HEALTH SIGNALMixed signals
A transparent discovery signal based on current public GitHub metadata.
Recent activity35% weight
72 Community adoption25% weight
9 Maintenance state20% weight
100 License clarity10% weight
0 Project information10% weight
35 This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
README preview
📈 Python Algorithmic Trading Bot Dashboard
This project is a full-stack algorithmic trading application built entirely in Python. It features a backtesting engine to test trading strategies against historical data and integrates with Alpaca's API for live paper trading (simulated trading with real market data but fake money). The entire system is controlled via a modern, interactive web dashboard built with Flask and Bootstrap.
🖼️ Screenshots
Here's a look at the different sections of the Trading Bot Dashboard:
| Full Dashboard Overview | Backtest Strategy & Results |
|---|
| |
| Live Bot Control | Live Paper Trading Status |
|---|
| |
✨ Features
- Backtesting Engine: Tests a Moving Average Crossover strategy on historical stock data fetched from Alpha Vantage.
- Live Paper Trading: Connects to Alpaca's paper trading API to execute the strategy in real-time using simulated money.
- Web Dashboard: A comprehensive UI built with Flask, Bootstrap, and Plotly.js to:
- Run backtests for any stock ticker.
- Visualize backtest results with interactive candlestick charts, moving averages, buy/sell signals, and portfolio value growth.
- Start and stop the live trading bot for a specified ticker.
- Monitor live paper trading account status (cash, portfolio value), open positions, and recent orders.
- View real-time market open/closed status.
- Switch between light and dark themes.
- Modular Code: Separated logic for data fetching/backtesting (
backtester.py), Alpaca API interaction (alpaca_trader.py), live bot execution (live_bot.py), and the web server (api.py).
- Secure API Key Management: Uses
.env files to store sensitive API keys securely.
🛠️ Technology Stack
- Backend: Python, Flask, Pandas, NumPy, Alpha Vantage API, Alpaca Trade API
- Frontend: HTML, CSS, JavaScript (Vanilla), Bootstrap 5, Plotly.js
- Dependencies:
python-dotenv, alpaca-trade-api, alpha-vantage
🔑 API Key Setup
This project requires API keys from two services. You need to store them in a .env file in the root project directory.
- Alpha Vantage:
- Alpaca Markets:
.env Example:
ALPHA_VANTAGE_KEY="YOUR_ALPHA_VANTAGE_KEY"
APCA_API_KEY_ID="YOUR_ALPACA_API_KEY_ID"
APCA_API_SECRET_KEY="YOUR_ALPACA_SECRET_KEY"
ALGORITHMICALLY RELATEDSimilar Open-Source Projects
Selected from shared topics, language and repository description—not editorial ratings.
Poseidon is a python-based application that leverages software defined networks (SDN) to acquire and then feed network traffic to a number of machine learning techniques. The machine learning algorithms classify and predict the type of device.
86/100 healthRecently updatedActive repository
PythonApache-2.0#automation#docker#faucet#hacktoberfest
⑂ 126 forks◯ 1 issuesUpdated 10 days ago
UavNetSim: A Python-based simulation platform for designing and testing communication protocols and control algorithms in UAV swarm.
85/100 healthRecently updatedActive repository
PythonMIT#ad-hoc-networks#networks#obstacle-avoiding#path-planning-algorithm
⑂ 59 forks◯ 1 issuesUpdated 3 days ago