TradeAlpha AIمنصة الأبحاث
مزود البيانات Diagnostics

Market حالة البيانات

Review whether the portal is using live Finnhub data, تعليمي educational data, stale cached data, provider fallback, or unavailable data states.

Current النمط

Frontend provider mode

Configured النمطتعليمي
Last Checked--
Serverless Endpoint

Function availability

Checking...
Real مزود البيانات Integration - Phase 9

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

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.

مزود البيانات Integration Status

Current provider implementations

تعليميActive fallback
FinnhubLive integration
Alpha VantageStub (Phase 10+)
PolygonStub (Phase 10+)
Yahoo-compatibleStub (Phase 10+)
API KeysServer-side only

To activate Finnhub: set FINNHUB_API_KEY و MARKET_DATA_PROVIDER=finnhub in Netlify environment variables. The frontend never sees these keys.

Rate Limit & Cache Notes

Finnhub free tier limits و caching strategy

Free tier rate limit60 calls/minute
Calls per سهم request2–3 calls
Server-side cache TTL55 seconds
CDN cache header60 seconds
Timeout per call5 seconds
Rate limit fallbackتعليمي data + warning

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.

Security Note

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.

هذا التحليل لأغراض تعليمية ومعلوماتية فقط ولا يُعد نصيحة مالية.