Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added api/routers/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file added api/routers/__pycache__/health.cpython-311.pyc
Binary file not shown.
Binary file added api/routers/__pycache__/indices.cpython-311.pyc
Binary file not shown.
Binary file added api/routers/__pycache__/market.cpython-311.pyc
Binary file not shown.
Binary file added api/routers/__pycache__/screener.cpython-311.pyc
Binary file not shown.
Binary file added api/routers/__pycache__/sectors.cpython-311.pyc
Binary file not shown.
Binary file added api/routers/__pycache__/stocks.cpython-311.pyc
Binary file not shown.
22 changes: 22 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import psxdata

# Historical OHLCV data
df = psxdata.stocks("ENGRO", start="2024-01-01", end="2024-12-31")

# All listed tickers
all_tickers = psxdata.tickers()

# KSE-100 index constituents
kse100 = psxdata.indices("KSE100")

# Live quote
q = psxdata.quote("LUCK")

# Sector summary
sectors = psxdata.sectors()

# Debt market instruments
debt = psxdata.debt_market()

# Margin-eligible stocks
scrips = psxdata.eligible_scrips()