Autonomous Multi-Agent Day Trading System
An intelligent, multi-agent trading system that leverages AI to autonomously discover and execute day trading opportunities in the Indian stock market.
- Multi-Agent Architecture: Specialized AI agents for market intelligence, opportunity discovery, and trade validation
- Autonomous Trading: Fully automated discovery and execution of trading opportunities
- Real-time Market Analysis: Live market data processing and technical analysis
- Risk Management: Built-in validation and risk assessment mechanisms
- Indian Market Focus: Optimized for NSE/BSE trading with INR-based strategies
The system consists of three core agents:
- Market Intelligence Agent: Generates daily market briefings and identifies priority sectors/stocks
- Organic Discovery Agent: Discovers trading opportunities using technical and fundamental analysis
- Validation Agent: Validates opportunities and manages risk before execution
- Python 3.8+
- Valid trading account API credentials
- Market data feed access
- Clone the repository:
git clone https://github.com/Rudr4Khunt1/AlphaStream.git
cd AlphaStream- Install dependencies:
pip install -r requirements.txt- Configure environment variables:
cp .env.example .env
# Edit .env with your API credentialsCreate a .env file with the following variables:
# Trading API Configuration
BROKER_API_KEY=your_api_key
BROKER_SECRET=your_secret
BROKER_USER_ID=your_user_id
# Market Data
MARKET_DATA_API_KEY=your_market_data_key
# Risk Management
MAX_DAILY_LOSS=5000
MAX_POSITION_SIZE=10000
MAX_OPEN_POSITIONS=5python main.py- Market Intelligence: Generate daily briefing with sector priorities and key levels
- Opportunity Discovery: Scan for trading setups based on technical and fundamental factors
- Validation: Risk assessment and trade parameter optimization
- Execution: Automated order placement and position management
- Monitoring: Real-time trade tracking and risk management
- Position Sizing: Automated position sizing based on volatility and account size
- Stop Losses: Mandatory stop-loss orders on all positions
- Daily Limits: Maximum daily loss and position limits
- Validation Layer: Multiple validation checks before trade execution
AlphaStream/
├── main.py # Entry point
├── core_workflow.py # Main workflow orchestration
├── trading_agents/ # AI trading agents
│ ├── market_intelligence_agent.py
│ ├── organic_discovery_agent.py
│ └── validation_agent.py
├── models/ # Data models
│ ├── discovery.py
│ ├── market_intelligence.py
│ └── validation.py
├── trading_tools/ # Trading utilities
├── tools/ # External tools and APIs
└── utils/ # Helper utilities
Modify settings.py to adjust:
- Risk tolerance levels
- Trading timeframes
- Market segments
- Position sizing rules
Each agent can be configured independently:
- Market Intelligence: Sector focus, analysis depth
- Discovery: Screening criteria, technical indicators
- Validation: Risk thresholds, validation rules
- NSE (National Stock Exchange)
- BSE (Bombay Stock Exchange)
- Equity Cash Segment
- F&O (Futures & Options) - Coming Soon
python -m pytest tests/- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
This software is for educational and research purposes. Trading involves substantial risk of loss. The authors are not responsible for any financial losses incurred through the use of this system. Always:
- Start with paper trading
- Use proper risk management
- Understand the code before running
- Monitor the system closely
- Never risk more than you can afford to lose
This project is licensed under the MIT License - see the LICENSE file for details.
Rudra Khunti
- GitHub: @Rudr4Khunt1
- LinkedIn: Rudra Khunti
If you find this project helpful, please consider:
- ⭐ Starring the repository
- 🐛 Reporting bugs
- 💡 Suggesting new features
- 🔄 Contributing code
Remember: Past performance does not guarantee future results. Trade responsibly!