Skip to content

Krishna2918/TradingBOT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

GRID - Data Collection & Trading Infrastructure

This repository contains two main projects for stock market data and trading:


πŸ“Š Stock Data Collection System (Root Level)

A production-ready, enterprise-grade system for collecting and managing stock market data from multiple sources.

Quick Start

# Docker deployment
docker-compose up -d

# Check health
curl http://localhost:8000/health

# Access monitoring
# Grafana: http://localhost:3000
# Prometheus: http://localhost:9090

Key Features

  • Multi-source data collection (Alpha Vantage, yfinance)
  • PostgreSQL-backed state persistence
  • Prometheus metrics & Grafana dashboards
  • Automated backups and recovery
  • Health check endpoints
  • Production-ready containerization

Documentation

Directory Structure

GRID/
β”œβ”€β”€ continuous_data_collection/    # Main data collection package
β”‚   β”œβ”€β”€ api/                       # Health check & metrics API
β”‚   β”œβ”€β”€ core/                      # Core collection logic
β”‚   β”œβ”€β”€ collectors/                # Data source collectors
β”‚   β”œβ”€β”€ storage/                   # Data persistence layers
β”‚   β”œβ”€β”€ monitoring/                # System monitoring
β”‚   └── utils/                     # Utility functions
β”œβ”€β”€ config/                        # Configuration files
β”œβ”€β”€ monitoring/                    # Prometheus & Grafana configs
β”œβ”€β”€ scripts/                       # Deployment & maintenance scripts
β”œβ”€β”€ tests/                         # Test suite
β”œβ”€β”€ data/                          # Data storage (gitignored)
β”œβ”€β”€ logs/                          # Log files (gitignored)
β”œβ”€β”€ Dockerfile                     # Container image
β”œβ”€β”€ docker-compose.yml             # Multi-service orchestration
└── requirements.txt               # Python dependencies

πŸ€– Trading Bot (projects/TradingBOT/)

An AI-powered automated trading system with advanced features for stock market trading.

Location

All trading bot code is in: projects/TradingBOT/

Features

  • AI/ML-based trading strategies
  • Multi-model ensemble approach
  • Real-time market data integration
  • Risk management systems
  • Backtesting framework
  • Performance monitoring

Navigate to Trading Bot

cd projects/TradingBOT
# See TradingBOT/README.md for more info

Trading Bot Structure

projects/TradingBOT/
β”œβ”€β”€ src/                           # Source code
β”‚   β”œβ”€β”€ ai/                        # AI models & strategies
β”‚   β”œβ”€β”€ data_collection/           # Market data collection
β”‚   β”œβ”€β”€ trading/                   # Trading execution
β”‚   β”œβ”€β”€ risk_management/           # Risk controls
β”‚   └── monitoring/                # System monitoring
β”œβ”€β”€ tests/                         # Test suite
β”œβ”€β”€ config/                        # Configuration
β”œβ”€β”€ models_archive/                # Trained AI models
β”œβ”€β”€ artifacts/                     # Training artifacts
└── README.md                      # Trading bot documentation

πŸ—‚οΈ Project Organization

Root Level (GRID/)

Purpose: Production stock data collection infrastructure

Use Cases:

  • Collecting historical stock data
  • Building data pipelines
  • Maintaining clean, quality stock data
  • Providing data to downstream systems

projects/TradingBOT/

Purpose: AI-powered trading system

Use Cases:

  • Automated trading strategies
  • Portfolio management
  • Risk management
  • Performance analysis

πŸš€ Getting Started

For Data Collection

# 1. Configure environment
cp .env.example .env
nano .env  # Add API keys

# 2. Start services
docker-compose up -d

# 3. Monitor collection
docker-compose logs -f collector

For Trading Bot

# Navigate to trading bot
cd projects/TradingBOT

# Follow trading bot specific README
cat README.md

πŸ“‹ System Requirements

Data Collection System

  • Python 3.11+
  • Docker & Docker Compose
  • PostgreSQL 15+
  • 8GB+ RAM, 4+ CPU cores
  • 100GB+ storage

Trading Bot

  • Python 3.10+
  • GPU recommended for AI models
  • Real-time market data access
  • See projects/TradingBOT/README.md for details

πŸ”§ Development

Data Collection Development

# Install dependencies
pip install -r requirements.txt

# Run tests
pytest tests/

# Run locally
python -m continuous_data_collection.main

Trading Bot Development

cd projects/TradingBOT
# See TradingBOT README for dev setup

πŸ“Š Monitoring

Data Collection Monitoring

Trading Bot Monitoring

  • See projects/TradingBOT/ for monitoring setup

🀝 Contributing

  1. Choose the appropriate project:
    • Data collection: Root level
    • Trading: projects/TradingBOT/
  2. Create a feature branch
  3. Make changes with tests
  4. Submit pull request

πŸ“ License

MIT License - See LICENSE file for details


πŸ“ž Support


Last Updated: 2025-10-29 Version: 2.0.0 (Reorganized Structure)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages