You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs/resources/portfolio.md says positions_all() does not exist; it has shipped since v2.4 (#269) #319
The portfolio reference page explicitly tells readers positions_all() does not exist and shows a hand-rolled cursor loop as the workaround. But #269 (v2.4) added positions_all() to both PortfolioResource and AsyncPortfolioResource, and the method is live in v2.6.0. Users following the docs write ~10 lines of cursor boilerplate when the SDK already ships an iterator.
The stale warning also obscures the non-trivial reason event_positions are intentionally dropped from the helper — that rationale is now documented only in the method's docstring.
Evidence
docs/resources/portfolio.md:67-80
!!! warning "`positions()` does not return Page[T]"
It returns `PositionsResponse` — two parallel lists (`market_positions`
and `event_positions`) plus its own `cursor` and `has_next`. There is no
`positions_all()` helper. Walk it manually:
Replace the warning block with an accurate description: positions_all() exists on sync and async resources and yields MarketPosition rows from market_positions only. Lift the event_positions caveat verbatim from PortfolioResource.positions_all's docstring and direct callers wanting the event view to iterate positions() page-by-page.
Activity
docs: fix resource-doc drift (#318, #319, #320, #336) (#358)