Commit Graph

11 Commits

Author SHA1 Message Date
bnair123
02c0995d26 Fix CI/CD: use public git.thefetagroup.com URL
Some checks failed
CI/CD Pipeline / test (push) Failing after 2m7s
CI/CD Pipeline / build-and-push (push) Has been skipped
2025-12-27 19:05:20 +04:00
bnair123
38dca66a52 Fix CI/CD: use gitea:3000 Docker network hostname
Some checks failed
CI/CD Pipeline / test (push) Failing after 2s
CI/CD Pipeline / build-and-push (push) Has been skipped
Changed from 'server:3000' to 'gitea:3000' for internal Docker network access.
2025-12-27 19:02:25 +04:00
bnair123
41dea96b88 Fix CI/CD: use direct git clone with external URL
Runner was failing to connect to internal 'server:3000' hostname.
Now uses public https://gitea.thefetagroup.com URL directly.
2025-12-27 18:58:04 +04:00
bnair123
0e5f48d43f Fix CI/CD workflow: use setup-python instead of container
Some checks failed
CI/CD Pipeline / build-and-push (push) Has been cancelled
CI/CD Pipeline / test (push) Has been cancelled
- Remove container directive that caused Node.js missing error
- Use actions/setup-python@v5 for Python 3.12 setup
- Add sudo for apt-get and make commands on Ubuntu runner
- Add ruff format check step
2025-12-27 18:44:24 +04:00
bnair123
f46846fcee Add Gitea Actions CI/CD pipeline for automated testing and container builds
Some checks failed
CI/CD Pipeline / test (push) Failing after 11s
CI/CD Pipeline / build-and-push (push) Has been skipped
- Add .gitea/workflows/ci-cd.yaml with test and build-push jobs
- Tests run on every push to main, builds trigger on v* tags
- Builds both engine and UI Docker images to Gitea container registry
- Update Dockerfile to Python 3.12 (matches pyproject.toml requirement)
- Requires REGISTRY_USERNAME and REGISTRY_PASSWORD secrets in Gitea
2025-12-27 18:33:51 +04:00
bnair123
e17c3bf508 Add Supertrend strategy and Risk Engine (Phase 2 Milestones 2.2, 2.3)
- Implement SupertrendStrategy with pandas-ta indicator, ATR-based stops
- Add RiskEngine with position sizing, risk limits, portfolio heat tracking
- Add comprehensive tests for both modules (32 new tests)
- Update AGENTS.md with accurate project structure and py312 target
2025-12-27 18:24:20 +04:00
bnair123
eca17b42fe Add Phase 2 foundation: regime classifier, strategy framework, WebSocket streamer
Phase 1 completion:
- Add DataStreamer for real-time Binance Futures WebSocket data (klines, mark price)
- Add DataValidator for candle validation and gap detection
- Add timeframes module with interval mappings

Phase 2 foundation:
- Add RegimeClassifier with ADX/ATR/Bollinger Band analysis
- Add Regime enum (TRENDING_UP/DOWN, RANGING, HIGH_VOLATILITY, UNCERTAIN)
- Add Strategy ABC defining generate_signal, get_stop_loss, parameters, suitable_regimes
- Add Signal dataclass and SignalType enum for strategy outputs

Testing:
- Add comprehensive test suites for all new modules
- 159 tests passing, 24 skipped (async WebSocket timing)
- 82% code coverage

Dependencies:
- Add pandas-stubs to dev dependencies for mypy compatibility
2025-12-27 15:28:28 +04:00
bnair123
7d63e43b7b Add data layer (DuckDB storage, fetcher) and spot adapter with tests
- Add DataStorage class for DuckDB-based market data persistence
- Add DataFetcher for historical candle backfill and sync operations
- Add BinanceSpotAdapter for spot wallet balance queries
- Add binance_spot_base_url to Settings for spot testnet support
- Add comprehensive unit tests (50 new tests, 82 total)
- Coverage increased from 62% to 86%
2025-12-27 14:38:26 +04:00
bnair123
17d51c4f78 Add test suite and fix configuration for Python 3.12
- Add AGENTS.md with coding guidelines for AI agents
- Add comprehensive unit tests for Binance adapter (mocked)
- Add integration tests for Binance testnet connectivity
- Fix pydantic-settings v2 compatibility for nested settings
- Fix MarginType enum to handle lowercase API responses
- Update Python requirement to 3.12+ (pandas-ta dependency)
- Update ruff config to new lint section format
- Update PLAN.md to reflect completed milestones 1.1-1.3

32 tests passing with 81% coverage
2025-12-27 14:09:14 +04:00
bnair123
6f602c0d19 Add core infrastructure: config, Binance adapter, docs, and auto-setup
- Add Pydantic settings with trading mode validation (paper/testnet/live)
- Implement Binance USDⓈ-M Futures adapter with hedge mode, isolated margin
- Add type definitions for orders, positions, and market data
- Create documentation (PLAN.md, ARCHITECTURE.md, SECURITY.md)
- Add setup.sh with uv/pip auto-detection for consistent dev environments
- Configure Docker multi-stage build and docker-compose services
- Add pyproject.toml with all dependencies and tool configs
2025-12-27 13:28:08 +04:00
bnair123
f1f9888f6b first commit 2025-12-27 11:28:48 +04:00