Skip to content

Upgrade to psxdata 1.3.0 - #16

Merged
mtauha merged 1 commit into
mainfrom
chore/psxdata-1.3.0
Nov 13, 2026
Merged

mtauha merged 1 commit into
mainfrom
chore/psxdata-1.3.0

Conversation

@mtauha

@mtauha mtauha commented Nov 13, 2026

Copy link
Copy Markdown
Member

Moves the psxdata pin in pyproject.toml and api/requirements.txt from the v1.2.1 archive to v1.3.0. 1.3.0 is released on GitHub only; PyPI publishing is still blocked.

What changes at runtime

  • screener()/quote() now also read PSX's REG main and GEM trading boards to set traded_today, which adds 2 requests per screener cache miss.
  • If the board can't be read, the screener result isn't cached, so misses repeat until it recovers.
  • The SDK's screener cache key changed from screener_all to screener_snapshot.

Tests

  • tests/api/test_proxy.py: fake_psx now also fakes a populated trading board.
  • The cross-caller cache test now seeds the new key.
  • Without these changes, 4 proxy cache tests failed: the unfaked board read made the snapshot uncacheable.
  • Result: 228 passed, ruff clean.

Not in this PR

  • Exposing traded_today in QuoteData/the screener response. The models currently ignore it.
  • Redeploying to FastAPI Cloud.

psxdata 1.3.0 reads the trading board inside screener()/quote() to set
traded_today and renames the screener cache key to screener_snapshot.
The proxy cache tests faked only ScreenerScraper, so the unfaked board
read made the snapshot uncacheable; fake a populated board and use the
new cache key.
@mtauha
mtauha merged commit e030635 into main Nov 13, 2026
4 checks passed
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.

1 participant