Skip to main content

Delayed Pakistan Stock Exchange (PSX) market data for Python — DividendFlow

Project description

divflowpsx

Delayed Pakistan Stock Exchange (PSX) market data for Python, from DividendFlow.

Not for live trading. Quotes are intentionally delayed by at least 10 seconds. For research and education only — not buy/sell advice.

Install

pip install divflowpsx
playwright install chromium

Quick start

import divflowpsx

# Full board (DataFrame) — delayed ≥ 10s
board = divflowpsx.get_board()
print(board.head())

# Single symbol
q = divflowpsx.get_quote("HBL")
print(q)

# Session changes
movers = divflowpsx.get_changes()

# Dividend / payout announcements
payouts = divflowpsx.get_payouts()

Custom delay / client

from divflowpsx import Client

client = Client(delay_seconds=10)
df = client.get_board()

Notes

  • Data is scraped from the public PSX DPS portal (dps.psx.com.pk).
  • First call downloads the board via headless Chromium (Playwright); subsequent calls respect the delay / cache.
  • Requires network access and playwright install chromium once per machine.

License

MIT © DividendFlow PK

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

divflowpsx-0.1.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

divflowpsx-0.1.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file divflowpsx-0.1.0.tar.gz.

File metadata

  • Download URL: divflowpsx-0.1.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for divflowpsx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3b420a30c49b9d31f982dd57757b464b81205f6f56f8d418bb485bf49f1e3d32
MD5 05426b01f7e2e985893a490f1be2d60a
BLAKE2b-256 e111a1806c5eb8ca17aef4bbfc35e310681abbab432b838fb933489c66acbad3

See more details on using hashes here.

File details

Details for the file divflowpsx-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: divflowpsx-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for divflowpsx-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0052db4946302ca48634592ccb046ddd01059d7a52e2199a27c7df6c6f49f9e8
MD5 bfc2d2443100525e4e86e7ab566d5946
BLAKE2b-256 974c0659b248000e56d3ec1b2272785d903ed8f848ca8d750ebd5b8527e36071

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page