Repository navigation
feat: add expiry-impact and strike-dependency - #6
Merged
Merged
Conversation
Adds `fa.expiry_impact(symbol, expiry=None, limit=None)` for
`GET /v1/exposure/expiry-impact/{symbol}` and
`fa.strike_dependency(symbol, strike=...)` for
`GET /v1/exposure/strike-dependency/{symbol}` (SPY and QQQ, Growth+).
Typed `ExpiryImpactResponse` and `StrikeDependencyResponse` carry the
response envelope, with shared `Gamma*` models for totals, strike rows,
expiry rows, the removal impact and facts. `strike` is sent as exact
decimal text (672.5 -> "672.5"); `expiry` and `limit` are omitted when not
given. Unit tests use real production responses as fixtures.
Docs: README section and method rows, docs/api.md reference, CHANGELOG,
llms.txt and AGENTS.md. Version 1.5.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds two SPY/QQQ exposure endpoints (Growth+) to the live SDK.
Added
fa.expiry_impact(symbol, *, expiry=None, limit=None)forGET /v1/exposure/expiry-impact/{symbol}.expiryandlimitare left out of the query string when not given.fa.strike_dependency(symbol, *, strike)forGET /v1/exposure/strike-dependency/{symbol}.strikeis sent as exact decimal text (672.5 ->672.5, never scientific notation).ExpiryImpactResponseandStrikeDependencyResponsewith the response envelope (endpoint_version,data_as_of), plusGammaContextMetadata,GammaContextReason,GammaTotals,GammaExpiryRow,GammaStrikeImpact,GammaRemovalImpactandGammaContextFact. All exported fromflashalpha.docs/api.mdreference and index lines, CHANGELOG1.5.0,llms.txt,AGENTS.md.pyproject.tomland__version__.Tests
tests/fixtures/): routes and exact query strings (including the 672.5 strike and the omitted-optional case), nested typed values, 403TierRestrictedError, 422unsupported_symbol, 404strike_not_found. The envelope guard also covers the two new response types.main: 173 passed, 94 skipped. No failures.Live check (production, through the new methods)
expiry_impact("SPY", limit=3): selected expiry 2026-11-19,removed_gross_share_pct4.37,net_sign_changedfalse, 3 reduction rows (first strike 740), 491 strikes,data_as_of.nodefa4.strike_dependency("SPY", strike=670): 48 contracts, 29 expiry rows, dominant expiry 2026-12-18 at 22.97%.🤖 Generated with Claude Code