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-03 11:53:18 +02:00
2025-10-09 12:56:18 +02:00
2025-09-24 23:47:21 +02:00
2025-10-16 08:18:42 +02:00
2025-10-16 08:18:42 +02:00
2025-10-16 08:18:42 +02:00
2025-10-02 08:44:08 +02:00
2025-10-16 08:18:42 +02:00
2025-10-14 10:42:56 +02:00
2025-09-24 23:47:21 +02:00
2025-10-14 09:06:37 +02:00
2025-10-14 09:06:37 +02:00
2025-10-03 13:35:14 +02:00
2025-09-26 11:02:46 +02:00
2025-09-26 11:02:46 +02:00
2025-09-24 23:47:21 +02:00
2025-09-24 23:47:21 +02:00
2025-10-13 16:10:55 +02:00
2025-09-24 23:47:21 +02:00