Closed raju-nichit closed 5 months ago
+1 As visible, the response is not JSON compatible. @Shoonya-Dev request you to please adjust the response so it can be processed easily.
Though this can be fixed at our end using the below syntax: def fix(data): import json return json.loads(data)
response = self.api.finvasiaAPI.get_daily_price_series('NSE', instrument, startdate=start_time,
enddate=end_time)
response = [fix(x) for x in response]
Greetings from Shoonya!
The current outcome of your code can be modified as per your requirements.
Getting Response with some extra characters due to that pandas data frame not generating properly
Code -> res = self.get_daily_price_series(exchange, token, startdate, enddate) daily_df = pd.DataFrame(res)
Dataframe output