jgrusewski
99e8d586a8
feat(tli): Implement agent allocate-portfolio command (WAVE 12.3.3)
- Add AllocatePortfolioArgs struct with validation
- Support 5 allocation strategies (equal-weight, risk-parity, ml-optimized, mean-variance, kelly)
- Implement constraint validation (0 < min < max < 1.0, positive capital)
- Real gRPC integration with Trading Agent Service via API Gateway
- Formatted table output with portfolio allocations and risk metrics
- JWT authentication support via Bearer token in gRPC metadata
- 15 comprehensive TDD integration tests (all passing)
- Case-insensitive strategy parsing
Test Results: cargo test -p tli --test agent_commands_test
✅ 15 passed, 0 failed
Files:
- tli/src/commands/agent.rs (NEW - 466 lines)
- tli/src/commands/mod.rs (export AgentArgs)
- tli/src/main.rs (integrate agent command)
- tli/tests/agent_commands_test.rs (NEW - 15 tests)
- tli/proto/trading_agent.proto (NEW)
Co-authored-by: Wave 12.3.3 TDD Implementation
2025-10-16 08:18:42 +02:00
..
2025-10-14 09:06:37 +02:00
2025-10-10 23:05:26 +02:00
2025-10-16 08:18:42 +02:00
2025-10-10 23:05:26 +02:00
2025-10-10 23:05:26 +02:00
2025-10-10 23:05:26 +02:00
2025-10-10 23:05:26 +02:00
2025-10-14 09:06:37 +02:00
2025-10-10 23:05:26 +02:00
2025-10-10 23:05:26 +02:00
2025-10-16 08:18:42 +02:00
2025-10-16 08:18:42 +02:00
2025-10-04 12:14:46 +02:00
2025-10-11 18:39:19 +02:00
2025-10-10 23:05:26 +02:00