AWS Dev Running Demo Overview¶
This document summarizes the running demo defined by D:\TradAI\demo-architecture.md. The demo scope is dry-run trading in AWS dev, not live exchange trading.
What The Demo Proves¶
The running demo proves that TradAI can execute a complete strategy workflow in AWS dev:
- authenticate through the public HTTPS API;
- browse the strategy catalog;
- sync and verify market data coverage;
- submit a fresh backtest;
- track the backtest to completion;
- inspect results, KPIs, equity, and report data;
- verify traceability with
trace_idandgit_commit; - compare strategy versions on the leaderboard;
- stage a selected model version;
- launch the staged strategy in dry-run mode on ECS;
- observe logs, trading status, and PnL snapshots;
- promote the model alias without starting live trading;
- verify operational observability;
- rollback model registry state;
- stop and clean up the dry-run ECS service.
Components On The Demo Path¶
The demo exercises these deployed components:
- public ALB entrypoint at
https://api-dev.tradai-system.com; - Cognito M2M authentication;
- WAF attached to the dev ALB;
- backend FastAPI gateway;
- strategy-service proxy routes;
- data-collection proxy routes;
- MLflow registry;
- Step Functions backtest orchestration;
- ECS Fargate backtest and dry-run strategy tasks;
- DynamoDB job/trading state;
- S3 data, MLflow, result, and config buckets;
- CloudWatch Logs and dashboard;
- SNS alert topic.
Script Coverage¶
The demo is reproduced by shell scripts under scripts/demo/.
Run everything:
Run individual architecture cases:
00-pre-demo-setup.sh Pre-demo setup and infrastructure checks
01-login-auth.sh Login/auth path
02-catalog.sh Strategy catalog
03-data-sync.sh Market data sync and coverage
04-submit-backtest.sh Backtest submission
05-track-progress.sh Backtest progress polling
06-results-kpis.sh Results, KPIs, traceability
07-leaderboard.sh Production leaderboard and demo leaderboard
08-stage-model.sh Promote selected version to Staging
09-dry-run-start.sh Start dry-run ECS strategy task
10-status-pnl-logs.sh Logs, trading status, PnL
11-promote-production.sh Promote model alias to Production without live trading
12-observability.sh SNS, ECS circuit breaker, CloudWatch
13-rollback.sh Actual model rollback
14-cleanup.sh Stop task and scale strategy service to zero
Each script is expected to fail if its corresponding architecture item is not implemented or not working in AWS dev.
Live Trading Boundary¶
The demo does not start live exchange trading. The Step 11 production promotion case validates model registry state only. It does not launch a live ECS trading service and does not require live exchange credentials.
Expected Final State¶
After a successful full run:
- a fresh backtest completed;
- the completed backtest has a non-empty
trace_id; - the completed backtest has a real 40-character
git_commit; - the dry-run ECS task reached
RUNNING; - logs/status/PnL were readable;
- model staging, production promotion, and rollback paths succeeded;
strategy-e2eteststrategyis back atdesired=0,running=0,pending=0, rolloutCOMPLETED.