Level history
get_level_historyHow the SPX dealer-positioning levels MOVED across recent finished sessions: the zero-gamma flip, call resistance and put support day by day, each session's change from the one before, and summary statistics for the window (flip range, net drift, mean daily movement, how often price closed above the flip). Use when: the question is about a trend or a window — has the flip been climbing, how far does it travel in a week — instead of calling get_levels once per day. Not for: one day (get_levels / get_session) or anything inside a session (get_gex_profile). Limits: finished sessions only, max 40 per call; days absent from the archive are reported in missing, never interpolated. Measurements only — no buy/sell signals, no forecast.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End of an explicit window, YYYY-MM-DD (inclusive). Defaults to the newest finished session. | |
| days | No | How many of the most recent finished sessions to read (default 20, max 40). Ignored when `from` is given. | |
| from | No | Start of an explicit window, YYYY-MM-DD (inclusive). Overrides `days`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Trading day, YYYY-MM-DD | |
| from | Yes | Trading day, YYYY-MM-DD | |
| missing | Yes | Days in the requested window with no payload in the archive; the window is reported over what was actually read | |
| summary | Yes | One sentence carrying this answer's numbers, its trading day and its source, written to be quoted verbatim to a reader rather than paraphrased. | |
| movement | Yes | How the level set travelled across the window. Descriptive statistics, not a forecast. | |
| sessions | Yes | One entry per finished session, NEWEST FIRST, same order as list_sessions |