Skip to main content

Getting started

Installation

Requires Python 3.11+.
To install inside a virtual environment (recommended):

Your first script

Fetch five years of ENGRO historical prices:
Expected output:

Caching

psxdata caches all data to ~/.psxdata/cache/ using parquet format. Historical data (before today) never expires. Today’s rows refresh every 15 minutes. To bypass the cache:

Next steps