How to fetched token list data into excel?

nayan_nandi
This is my code_
import pandas as pd
url = "https://api.kite.trade/instruments.json"
df = pd.read_json(url)
df.to_excel("Token_List.xlsx")
print('DataFrame is written to Excel File successfully.')

when I trying to run this code it's give me error.
Sign In or Register to comment.