Files
foxhunt/services/trading_service/README.md
jgrusewski e2a0576ef5 docs: create/update README.md for all services, CLI, and testing crates
Create 3 missing service READMEs (api_gateway, data_acquisition_service,
trading_agent_service). Create bin/fxt/README.md. Create
testing/service-integration/README.md. Update existing service and testing
READMEs to standard template. Delete 4 subdirectory READMEs from
testing/integration/ and testing/e2e/.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 22:50:38 +01:00

33 lines
944 B
Markdown

# trading_service
Core execution engine for order placement, position keeping, risk integration, and real-time P&L tracking.
## Key Types
- `TradingServiceImpl` -- main gRPC service
- `OrderExecutor` -- high-throughput order handling
- `PositionManager` -- real-time position and P&L tracking
- `RiskIntegration` -- pre-trade and post-trade compliance
## gRPC Endpoints
- `PlaceOrder` -- submit new orders
- `CancelOrder` -- cancel existing orders
- `GetPosition` -- query current positions
- `SubscribeMarketData` -- market data feeds
- `GetPnlUpdates` -- real-time P&L updates
## Configuration
- `GRPC_PORT` -- gRPC listen port
- `DATABASE_URL` -- PostgreSQL connection string
- `TLS_ENABLED` -- enable TLS 1.3 (default: false)
- `TLS_CERT_PATH`, `TLS_KEY_PATH`, `TLS_CA_PATH` -- TLS certificates
- `TLS_REQUIRE_CLIENT_CERT` -- mutual TLS (default: false)
## Testing
```bash
SQLX_OFFLINE=true cargo test -p trading_service --lib
```