pix / test.py
sarim's picture
updated commodities
9e0b833
Raw History Blame Contribute Delete
406 Bytes
import psxdata
import yfinance as yf
import models as md
def debt_market():
debt = psxdata.fundamentals("EPCL")
print(debt)
def allShare():
all_share = psxdata.indices("ALLSHR")
print(all_share)
def commodities():
gold = md.commodities.get("Gold")
data = yf.download(gold, start="2025-01-01", end="2026-08-12")
print(data)
if __name__ == "__main__":
commodities()