ai

Analyze Stock

POST /api/ai/analyze — streams expert AI analysis as Server-Sent Events.

Defense layers (in order): L1: slowapi IP rate limit — 10/min per IP (burst cap) L2: platform daily cost ceiling — global $/day circuit breaker L3: force_refresh cooldown — 1 per user per hour L4: atomic reserve_ai_call RPC — fixes TOCTOU + disconnect abuse (includes per-user concurrency cap) L5: release_ai_call in finally — refunds on upstream error, frees slot

post/api/ai/analyze

Request

  • Base URL: https://api.equity-rank.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.equity-rank.com/api/ai/analyze
  • Auth: HTTP bearer

Request body

symbolstring required
modelstring
force_refreshboolean

Response

Successful Response

Changes

No recorded changes to this operation across all 2 revisions of this API.