Commit Graph

7 Commits

Author SHA1 Message Date
mindesbunister
2adab40781 fix: Use IF node typeVersion 1 for better compatibility
- Changed from typeVersion 2 to typeVersion 1
- typeVersion 1 is supported in older n8n versions
- Should fix 'custom node' installation error
2025-10-23 16:25:09 +02:00
mindesbunister
0b9c60774f fix: Replace IF nodes with Switch nodes in n8n workflow
- Changed from n8n-nodes-base.if (v2) to n8n-nodes-base.switch (v3)
- IF nodes were showing 'custom node' error in n8n
- Switch nodes are universally available in all n8n versions
- Both conditional nodes updated: Risk Check and Trade Success
- Workflow should now import without errors
2025-10-23 16:12:25 +02:00
mindesbunister
8ff5efbb6d feat: Add simplified n8n workflow without secret validation
- New n8n-workflow-simple.json with 10 nodes (vs 13 in complete version)
- Direct flow: TradingView webhook → Parse → Risk check → Execute → Telegram
- No TradingView webhook secret validation (simpler setup)
- Updated guide to explain single API_SECRET_KEY authentication
- Customized for flow.egonetix.de webhook URL
- Clearer documentation of security model and testing steps
2025-10-23 16:04:52 +02:00
mindesbunister
4a9a80f045 feat: Add n8n workflow for TradingView webhook automation
- Complete 13-node workflow connecting TradingView alerts to trade execution
- Webhook validation, risk checking, and trade execution via v4 API
- Telegram notifications for all scenarios (success/error/blocked)
- Comprehensive setup guide with testing and troubleshooting
- Supports SOL/BTC/ETH and LONG/SHORT signals from TradingView
2025-10-23 15:11:37 +02:00
mindesbunister
8bb2f64568 feat: Add complete Docker containerization for v4
Production & Development Setup:
- Multi-stage Dockerfile with optimized build (node:20-alpine)
- docker-compose.yml for production with PostgreSQL
- docker-compose.dev.yml for development with hot reload
- Dockerfile.dev for development environment
- .dockerignore to reduce build context

Features:
- Health checks for both app and database
- Non-root user security (nextjs:nodejs)
- Resource limits (CPU/memory)
- Volume persistence for logs and database
- PostgreSQL 16 with automatic initialization
- Network isolation with custom bridge network

Helper Scripts:
- docker-build.sh - Build production image
- docker-start.sh - Start all services
- docker-stop.sh - Stop containers safely
- docker-logs.sh - View real-time logs

Documentation:
- DOCKER.md - Complete deployment guide with:
  * Quick start commands
  * Production deployment steps
  * Development hot reload setup
  * Configuration examples
  * Docker commands reference
  * Troubleshooting guide
  * Best practices for security & performance

Configuration:
- Environment-based configuration via .env
- Safe defaults for testing ($50 positions)
- Separate dev/prod compose files
- Debug mode with Node.js inspector (port 9229)
- Log rotation and resource monitoring

Ready for deployment with:
  cd v4 && ./docker-start.sh
2025-10-23 14:57:49 +02:00
mindesbunister
3859bb31f0 docs: Add comprehensive .env.example with all trading parameters
- Add detailed Drift Protocol configuration with security notes
- Add Solana RPC options (Helius, QuickNode, Alchemy, Ankr)
- Add Pyth Network price feed configuration
- Add complete trading parameters with explanations and examples
- Add n8n workflow integration settings
- Add notification setup (Telegram, Discord, Email/SMTP)
- Add database configuration for Phase 3
- Add security & access control settings
- Add development & debugging options
- Add monitoring & analytics integrations
- Add comprehensive notes section with:
  * Production vs Testing setup examples
  * Risk calculation examples
  * API key setup instructions
  * Testing checklist
  * Security reminders
  * Documentation links

All parameters include:
- Clear descriptions
- Example values
- Risk calculations
- Setup instructions
- Alternative options
2025-10-23 14:46:28 +02:00
mindesbunister
1345a35680 feat: Complete Phase 2 - Autonomous Trading System
- Add Pyth Network price monitoring (WebSocket + polling fallback)
- Add Position Manager with automatic exit logic (TP1/TP2/SL)
- Implement dynamic stop-loss adjustment (breakeven + profit lock)
- Add real-time P&L tracking and multi-position support
- Create comprehensive test suite (3 test scripts)
- Add 5 detailed documentation files (2500+ lines)
- Update configuration to $50 position size for safe testing
- All Phase 2 features complete and tested

Core Components:
- v4/lib/pyth/price-monitor.ts - Real-time price monitoring
- v4/lib/trading/position-manager.ts - Autonomous position management
- v4/app/api/trading/positions/route.ts - Query positions endpoint
- v4/test-*.ts - Comprehensive testing suite

Documentation:
- PHASE_2_COMPLETE_REPORT.md - Implementation summary
- v4/PHASE_2_SUMMARY.md - Detailed feature overview
- v4/TESTING.md - Testing guide
- v4/QUICKREF_PHASE2.md - Quick reference
- install-phase2.sh - Automated installation script
2025-10-23 14:40:29 +02:00