Vasily.onl f09864d61b 4.0 - 3.0 Implement strategy analysis tables and repository for backtesting
- Added `StrategyRun` and `StrategySignal` models to track strategy execution sessions and generated signals, respectively, ensuring a clear separation from live trading data.
- Introduced `StrategyRepository` for managing database operations related to strategy runs and signals, including methods for creating, updating, and retrieving strategy data.
- Updated `DatabaseOperations` to integrate the new repository, enhancing the overall architecture and maintaining consistency with existing database access patterns.
- Enhanced documentation to reflect the new database schema and repository functionalities, ensuring clarity for future development and usage.

These changes establish a robust foundation for strategy analysis and backtesting, aligning with project goals for modularity, performance, and maintainability.
2025-06-12 15:29:14 +08:00
2025-06-10 12:55:41 +08:00
2025-06-12 13:27:30 +08:00
2025-06-12 13:27:30 +08:00
2025-06-12 13:27:30 +08:00
2025-06-07 14:21:13 +08:00
2025-06-10 12:55:41 +08:00

Crypto Trading Bot Platform

A simplified crypto trading bot platform for strategy testing and development using real OKX market data and virtual trading simulation.

Overview

This platform enables rapid strategy development with a monolithic architecture that supports multiple concurrent trading bots, real-time monitoring, and performance tracking.

Key Features

  • Multi-Bot Management: Run multiple trading bots simultaneously with different strategies.
  • Real-time Monitoring: Live OHLCV charts with bot trading signals overlay.
  • Modular Chart System: Advanced technical analysis with 26+ indicators and strategy presets.
  • Virtual Trading: Simulation-first approach with realistic fee modeling.
  • JSON Configuration: Easy strategy parameter testing without code changes.
  • Backtesting Engine: Test strategies on historical market data (planned).
  • Crash Recovery: Automatic bot restart and state restoration.

Tech Stack

  • Framework: Python 3.10+ with Dash
  • Database: PostgreSQL
  • Real-time Messaging: Redis
  • Package Management: UV
  • Containerization: Docker

Quick Start

For detailed instructions on setting up and running the project, please refer to the main documentation.

➡️ Go to the Full Documentation

# Quick setup for development
git clone <repository>
cd TCPDashboard
uv sync
cp env.template .env
docker-compose up -d
uv run python main.py

Documentation

All project documentation is located in the docs/ directory. The best place to start is the main documentation index.

  • Main Documentation - The central hub for all project documentation, including setup guides, architecture, and module details.
  • Setup Guide - Complete setup instructions for new machines.
  • Project Context - The single source of truth for the project's current state.

Contributing

We welcome contributions! Please review the Contributing Guidelines and the Project Context before getting started.

Description
No description provided
Readme 5.5 MiB
Languages
Python 98.5%
PLpgSQL 1.4%