Implemented complete Trading Agent Service gRPC interface following TDD principles. Universe Management: select_universe, get_universe, update_universe_criteria (full DB integration) Strategy Coordination: register_strategy, list_strategies, update_strategy_status (full DB integration) Agent Monitoring: get_agent_status, stream_agent_activity, get_agent_performance (implemented) Asset/Portfolio: get_selected_assets, get_allocation, rebalance_portfolio (placeholders) Orders: generate_orders, submit_agent_orders (placeholders) Health: health_check (full implementation) Test Results: 18/18 tests pass (100%) Integration: UniverseSelector, StrategyCoordinator, TradingAgentMetrics Error Handling: Proper Status codes and metrics recording 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
66 lines
1.7 KiB
TOML
66 lines
1.7 KiB
TOML
[package]
|
|
name = "trading_agent_service"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
authors.workspace = true
|
|
license.workspace = true
|
|
description = "Trading Agent Service - Portfolio management with universe selection, asset selection, and order generation"
|
|
|
|
[[bin]]
|
|
name = "trading_agent_service"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
# Core async and utilities
|
|
tokio.workspace = true
|
|
anyhow.workspace = true
|
|
tracing.workspace = true
|
|
tracing-subscriber.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
once_cell.workspace = true
|
|
|
|
# gRPC and networking
|
|
tonic = { workspace = true, features = ["transport", "server", "tls-ring", "tls-webpki-roots"] }
|
|
tonic-prost.workspace = true
|
|
tonic-reflection.workspace = true
|
|
tonic-health.workspace = true
|
|
prost.workspace = true
|
|
tower.workspace = true
|
|
hyper.workspace = true
|
|
http-body-util.workspace = true
|
|
hyper-util.workspace = true
|
|
bytes.workspace = true
|
|
|
|
# Async streams and futures
|
|
tokio-stream.workspace = true
|
|
async-stream.workspace = true
|
|
futures.workspace = true
|
|
async-trait.workspace = true
|
|
|
|
# Performance monitoring
|
|
prometheus.workspace = true
|
|
axum.workspace = true
|
|
|
|
# Database and persistence
|
|
sqlx = { workspace = true, features = ["postgres", "chrono", "uuid", "json", "macros", "runtime-tokio"] }
|
|
uuid.workspace = true
|
|
chrono.workspace = true
|
|
|
|
# Internal workspace crates
|
|
common = { workspace = true, features = ["database"] }
|
|
config = { workspace = true, features = ["postgres"] }
|
|
|
|
# Utilities
|
|
thiserror.workspace = true
|
|
rust_decimal = { workspace = true, features = ["serde"] }
|
|
rust_decimal_macros.workspace = true
|
|
|
|
[build-dependencies]
|
|
tonic-prost-build.workspace = true
|
|
prost-build.workspace = true
|
|
|
|
[dev-dependencies]
|
|
criterion = { workspace = true }
|