How anveshna25/centflow works
CentFlow is a market-intelligence web application. Users authenticate, navigate market, watchlist, and portfolio views, inspect assets, and request market data and analytics through the frontend API client and FastAPI backend. Market-data requests can discover instruments and persist quote or historical-price observations; analytics and portfolio features are distinct product branches. The README describes the product at a high level; several route and service implementations were not sampled, so links for those branches are omitted or marked unverified rather than inferred as concrete calls.
Main entry points: client.js API client · router.py API router · App.jsx App and page routing · ingestion.py Market ingestion
Components 27
Web application
- App and page routing
frontend/src/App.jsx - Authentication UI
frontend/src/auth/AuthContext.jsx - API client
frontend/src/api/client.js - Markets and asset views
frontend/src/pages/MarketsPage.jsx - Portfolio view
frontend/src/pages/PortfoliosPage.jsx - Watchlist view
frontend/src/pages/WatchlistsPage.jsx - Asset detail
frontend/src/components/market/AssetDetailModal.jsx - Price chart
frontend/src/components/market/PriceChart.jsx
API surface
- API router
backend/app/api/router.py - Market data routes
backend/app/api/routes/market_data.py - Analytics routes
backend/app/api/routes/analytics.py - Portfolio routes
backend/app/api/routes/portfolios.py - Watchlist routes
backend/app/api/routes/watchlist.py - Authentication routes
backend/app/api/routes/auth.py
Market data
- Market ingestion
backend/app/services/ingestion.py - Market data service
backend/app/services/market_data.py - Provider integration
backend/app/providers/base.py - Instrument repository
backend/app/repositories/instrument.py - Price repository
backend/app/repositories/price.py
Analytics and investing
- Analytics service
backend/app/services/analytics.py - Analytics calculations
backend/app/analytics/calculations.py - Technical indicators
backend/app/analytics/indicators.py
Identity and persistence
- Authentication service
backend/app/services/auth.py - Google authentication
backend/app/services/google_auth.py - User and session records
backend/app/database/models/user.py - Database session
backend/app/database/session.py
Other components
- User
Connections 33
- User → App and page routing: uses
frontend/src/App.jsx - App and page routing → Markets and asset views: routes to
frontend/src/App.jsx - App and page routing → Portfolio view: routes to
frontend/src/App.jsx - App and page routing → Watchlist view: routes to
frontend/src/App.jsx - App and page routing → Asset detail: opens
frontend/src/App.jsx - Markets and asset views → API client: requests data
- Portfolio view → API client: requests data
frontend/src/pages/PortfoliosPage.jsx - Watchlist view → API client: requests data
frontend/src/pages/WatchlistsPage.jsx - Asset detail → API client: requests data
frontend/src/components/market/AssetDetailModal.jsx - Asset detail → Price chart: renders
frontend/src/components/market/AssetDetailModal.jsx - API client → Market data routes: HTTP requests
- API client → Analytics routes: HTTP requests
- API client → Portfolio routes: HTTP requests
- API client → Watchlist routes: HTTP requests
- API router → Market data routes: registers
backend/app/api/router.py - API router → Analytics routes: registers
backend/app/api/router.py - API router → Portfolio routes: registers
backend/app/api/router.py - API router → Watchlist routes: registers
backend/app/api/router.py - API router → Authentication routes: registers
backend/app/api/router.py - Market data routes → Market ingestion: calls
backend/app/api/routes/market_data.py - Market data routes → Market data service: calls
backend/app/api/routes/market_data.py - Market ingestion → Market data service: queries
backend/app/services/ingestion.py - Market ingestion → Instrument repository: persists instruments
backend/app/services/ingestion.py - Market ingestion → Price repository: persists prices
backend/app/services/ingestion.py - Market data service → Provider integration: uses provider
- Analytics routes → Analytics service: calls
- Analytics service → Analytics calculations: calculates
- Analytics calculations → Technical indicators: uses
- Authentication routes → Authentication service: calls
backend/app/api/routes/auth.py - Authentication routes → Google authentication: calls
backend/app/api/routes/auth.py - Authentication service → User and session records: manages sessions
backend/app/services/auth.py - Authentication service → Database session: uses database
- Authentication UI → API client: uses
frontend/src/auth/AuthContext.jsx