Skip to main content

Get live PSX trading board snapshots with Python

psxdata.quote() returns a live screener snapshot for any PSX-listed stock — current price, sector, market cap, and more. This data is fetched in real time from PSX during market hours.
PSX does not expose tick-by-tick or minute-bar data via its public website. quote() gives you a point-in-time snapshot — suitable for dashboards and portfolio monitors that refresh every few minutes.

Single stock snapshot

Build a portfolio monitor

The PSX screener is a heavy page. Use cache=False sparingly — the default 15-minute cache means psxdata fetches the screener at most 4 times per hour for all symbols combined, not once per symbol.

Check if market is open

See also