Skip to content

[SPT-1407] Add last_updated/timeframe to IndicesSnapshot and list_snapshot_indices - #1038

Merged
justinpolygon merged 2 commits into
masterfrom
justin/spt-1407
Oct 16, 2026
Merged

justinpolygon merged 2 commits into
masterfrom
justin/spt-1407

Conversation

@justinpolygon

@justinpolygon justinpolygon commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator
  • Adds last_updated and timeframe to IndicesSnapshot. The API returns them, but the model was missing them.
  • Adds list_snapshot_indices, which paginates. get_snapshot_indices only ever returns the first page (250 indices) and is unchanged.

No breaking changes. Tests, docs and an example are included.

…pshot_indices

IndicesSnapshot was missing last_updated and timeframe, which the API
returns and the spec defines. They're appended after the existing
fields so positional construction is unchanged.

get_snapshot_indices uses _get, so it only ever returns the first page
(250 of ~13.5k indices) and only accepts ticker_any_of. Add
list_snapshot_indices, which uses _paginate to follow next_url and
takes the spec's ticker, ticker range, order, limit and sort params.
get_snapshot_indices keeps its signature and List return type.
@justinpolygon
justinpolygon marked this pull request as ready for review October 16, 2026 19:27
@justinpolygon
justinpolygon merged commit c6db4b2 into master Oct 16, 2026
7 checks passed
@justinpolygon
justinpolygon deleted the justin/spt-1407 branch October 16, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants