Home Article Instruments margincalculator angelbroking Instruments margincalculator angelbroking Software Technique Web Technique All Computer Language and Computer Language Practice Computer Educa May 04, 2025 0 Comments Share: Facebook Twitter Google+ Pinterest Whatsapp TREDING import requests import pandas as pd # URL to fetch the JSON data url = "https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json" # Fetch the JSON data from the URL response = requests.get(url) data = response.json() # Convert the JSON data into a pandas DataFrame df = pd.DataFrame(data) # Write the DataFrame to an Excel file df.to_excel('OpenAPIScripMaster.xlsx', index=False, engine='openpyxl') print("Data has been successfully written to OpenAPIScripMaster.xlsx") Copy Copied Text:
No comments