https://pypi.org/project/yfinance/ https://rapidapi.com/apidojo/api/yahoo-finance1 result = treasure_historical.to_json (orient = "split") parsed = json.loads (result) print (json.dumps (parsed, indent=4))