slate_health
Slate Health
Pre-flight diagnostic for a slate. Returns whether odds, projections, matchup, and FD master-session are ready BEFORE the agent invokes /v1/generate.
Either slate_id or date is required. When slate_id is given, the slate metadata is also returned (games list, lock times). When only date is given, the data-pillar checks still run but game coverage cannot be computed (returned as null).
READING THE PROJECTION FRESHNESS (MLB especially): stokastic.age_min is the
age of the cached snapshot FILE, NOT a data-quality signal. For MLB the cache
is refreshed only twice a day, so mid-afternoon it routinely reads several
hours old AND THAT IS FINE — a user-facing generate fetches projections LIVE
(refresh_data=true), and stokastic.generate_fetches_live=true flags this.
A stale age_min with a loaded, populated pool is NOT "projections broken /
aces at 0 / no edge": probable pitchers are set days ahead (non-zero), and
only confirmed BATTING lineups firm up ~1-2h before lock. Do NOT treat a stale
cache age as a blocker or tell the user to wait/re-refresh — check the actual
pool (get_slate_players) for non-zero pitcher projections instead.
Responses:
200: Successful Response (Success Response) Content-Type: application/json 422: Validation Error Content-Type: application/json
Example Response:
{
"detail": [
{
"loc": [],
"msg": "Message",
"type": "Error Type",
"ctx": {}
}
]
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| site | No | fd | |
| sport | No | NBA | |
| slate_id | No | ||
| include_snapshot | No | ||
| last_known_fingerprint | No |