CoolFace
Apppublic

Lakshya-Jain7/jetro-equity-terminal

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes
App README

Equity Research Terminal — Backend API

FastAPI backend for the Global AI Equity Research Terminal, packaged as a Hugging Face Docker Space. It serves company snapshots, financial statements, the Ratio Lab, the DCF Workbench, Relative Valuation and the deterministic AI Research Analyst, all on free data sources.

Runtime

  • —Container starts with: uvicorn app.main:app --host 0.0.0.0 --port 7860
  • —Health check: GET /api/health
  • —Interactive docs: /docs

Configuration (optional environment variables)

VariableDefaultPurpose
ERT_DB_PATH/home/user/app/data/cache.dbSQLite cache location. Point at a mounted disk if the Space has persistent storage.
ERT_CORS_ORIGINSlocalhost originsJSON list of allowed frontend origins (set to your Vercel domain).
ERT_TTL_QUOTE / ERT_TTL_PROFILE / ERT_TTL_FINANCIALS300 / 86400 / 43200Cache TTLs in seconds.

Notes

  • —The SQLite cache is a performance cache only; an ephemeral filesystem (free tier) is fine. Enable persistent storage and set ERT_DB_PATH to keep it across restarts.
  • —This is the API only. The Next.js frontend deploys separately (Vercel) and points NEXT_PUBLIC_API_BASE at this Space's URL.