Market حالة البيانات
Review whether the portal is using live Finnhub data, تعليمي educational data, stale cached data, provider fallback, or unavailable data states.
Function availability
Finnhub live data metrics
When Finnhub is the active provider و FINNHUB_API_KEY is set server-side, real market data flows through the serverless proxy. The metrics below update on each diagnostics refresh.
Run diagnostics to see live provider metrics. ثابت mode uses تعليمي educational data.
Health checks, latency, fallback, و cache simulation
The health endpoint checks provider configuration و fallback readiness without calling real paid APIs or exposing secret values.
Checking provider health
Diagnostics will appear here when Netlify Functions are available. ثابت mode remains supported with تعليمي educational data.
Current provider implementations
To activate Finnhub: set FINNHUB_API_KEY و MARKET_DATA_PROVIDER=finnhub in Netlify environment variables. The frontend never sees these keys.
Finnhub free tier limits و caching strategy
The in-memory serverless cache prevents duplicate Finnhub calls for the same symbol within a 55-second window across warm function instances. On rate limit (HTTP 429), the function returns safe تعليمي fallback data with a user-facing warning.
API keys are never placed in frontend JavaScript
Real provider keys must be configured only as Netlify or serverless environment variables. If no provider is configured, the portal uses تعليمي educational data or safe fallback data.
هذا التحليل لأغراض تعليمية ومعلوماتية فقط ولا يُعد نصيحة مالية.