Comprehensive scaffold for an AI-assisted options recommendation platform, covering frontend, gateway, analytics microservices, ingestion, feature engineering, and infrastructure.
apps/frontend– Next.js UI with layered rationale panels and guided trade flowservices/api-gateway– NestJS edge service handling auth, rate limiting, feature flags, and routingservices/market-data– FastAPI service serving live/synthetic quotes and option chains from Redisservices/data-ingestion– Go-based Polygon adapter streaming into Redis, Kafka, and S3services/options-analytics– FastAPI service scoring liquidity and suitability for option chainsservices/signals-service– FastAPI analytics for TA, sentiment, congressional, and macro signalsservices/recommendation-engine– FastAPI hybrid rule/ML scorer producing contract picks + sizingservices/ai-orchestrator– FastAPI RAG layer crafting layered rationales via LLM gatewaypipelines/airflow– ETL orchestration for IV rank, liquidity, feature-store buildspipelines/dbt– Timescale/Postgres models for analytics featuresfeature-store– Feast feature view definitions + configurationschemas– JSON schemas for request/response contractsinfrastructure– Docker, Kubernetes, and Terraform bootstrap assetsdocs– Architecture notes, roadmap, and onboarding material
-
Install dependencies
npm install
Individual Python/Go services manage dependencies via
pyproject.tomlandgo.mod. -
Run locally with Docker Compose
docker compose -f infrastructure/docker/docker-compose.yml up --build
-
Frontend development
npm run dev:frontend
-
API gateway
npm run dev:api
-
Python services
uvicorn app.main:app --reload --port 7001 # market-data
| Service | Key env vars |
|---|---|
| API Gateway | AUTH_JWKS_URI, AUTH_AUDIENCE, AUTH_ISSUER, downstream URLs |
| Market Data | REDIS_URI, REDIS_NAMESPACE, DEFAULT_CHAIN_CONTRACTS |
| Data Ingestion | POLYGON_API_KEY, POLYGON_SYMBOLS, POLYGON_SYNTHETIC_ONLY, REDIS_URI, KAFKA_BROKERS, S3_BUCKET |
| Options Analytics | MARKET_DATA_URL (optional live chain fetch) |
| Signals Service | SIGNALS_DB_DSN for Postgres-backed signals |
| Recommendation Engine | FEAST_REPO_PATH, MLFLOW_MODEL_URI to enable feature store + model registry |
A GitHub Actions workflow (.github/workflows/ci.yml) runs linting, builds, and unit tests across Node, Python, and Go stacks.
- Polygon websocket adapter automatically flips to live data when credentials are supplied.
- Market Data API exposes Redis-backed quotes/chains for downstream services.
- Recommendation engine consumes Feast features and MLflow-served models when configured.
- Signals service hydrates congressional and macro context from Postgres if DSN provided.
- See
docs/roadmap.mdfor the expanded backlog (vector DB, orchestrator upgrades, backtesting APIs).