Ai API
Auto-generated from
openapi-snapshot.json. Do not edit by hand — changes are overwritten byscripts/docs/generate_api_reference.py.
2 endpoints in this group.
POST /api/ai/ask
Ask
Answer a free-form question, gated to market/finance topics by the system prompt.
Returns a streaming text/event-stream response when the client sends
Accept: text/event-stream; otherwise responds with the original JSON
{"answer": ...} envelope (backward-compatible).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
accept | header | — | optional |
Request body: application/json
Responses
| Code | Description |
|---|---|
200 | Successful Response |
422 | Validation Error |
POST /api/ai/symbol/{symbol}/ask
Ask Symbol
Answer a per-symbol research question through shared AI synthesis.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
symbol | path | string | required |
Request body: application/json
Responses
| Code | Description |
|---|---|
200 | Successful Response |
422 | Validation Error |