How do I list alerts?
Use GET /api/v1/alerts. It returns AlertDto[].
| Query | Rule |
|---|---|
limit | 1 to 200; default 100 |
symbol | Optional ticker |
since | Optional event ID from 0 up |
curl 'https://api.squeeze.plus/api/v1/alerts?symbol=NVDA&limit=20'Each event has ruleVersion, historyStatus, and comparable. An event can have historyStatus: "invalid". The app keeps the row as a past fact. Do not match its old values with new ones.
| Field | Type | Meaning |
|---|---|---|
id, ts | number | Event ID and Unix time. |
type | string | One of the five event types. |
severity | info, warn, or hot | Rule tier. |
symbol | string | Stock-token ticker. |
poolId | string or null | Related pool, when there is one. |
title, body | string | Saved event text. |
data | object | Facts saved when the rule fired. |
ruleVersion | number | Rule set that made the event. |
historyStatus | current, legacy, or invalid | Past-row state. |
comparable | boolean | Safe to compare with the current rule. |
Sample
Section titled “Sample”Use since=120 to ask for events after event ID 120. Keep the newest ID if you poll.