Skip to content

Expose sector_code and sector_name; psxdata 1.4.0; release 0.7.0 - #19

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

mtauha merged 1 commit into
mainfrom
chore/psxdata-1.4.0

Conversation

@mtauha

@mtauha mtauha commented Nov 13, 2026

Copy link
Copy Markdown
Member

Upgrades to psxdata 1.4.0 (GitHub archive) and releases 0.7.0.

Added

  • sector_code ("0809") and sector_name ("FERTILIZER") on /screener rows and /stocks/{symbol}/quote, with OpenAPI descriptions. <NA> → null.
  • sector on screener rows stays numeric.

Changed

  • pe_ratio is null where PSX shows 0.00 (no meaningful P/E). It used to come back as 0.

Tests

  • New tests for the sector fields on the screener (including null) and the quote.
  • test_proxy.py now seeds a 1.4.0-shaped snapshot, because 1.4.0 refetches one without sector_code. It also fakes the sector list alongside the trading board.
  • 235 passed; ruff check api/ and mypy api clean.

After merge: publish GitHub release v0.7.0 (FastAPI Cloud deploy + Docker Hub).

…elease 0.7.0

psxdata 1.4.0 adds sector_code/sector_name to the screener and returns
a 0 P/E as NaN. Add the sector fields to ScreenerRow and QuoteData; a
0 P/E now comes back as null. The proxy cache tests seed a 1.4.0-shaped
snapshot (1.4.0 refetches one without sector_code) and fake the sector
list next to the trading board.
@mtauha
mtauha merged commit 571254c 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