JSONDecode error in retrieving top loser
-
@Moderator_1 i am getting error when i try to use PercPriceLosers datatype to retrieve top loser for other datatype it is working
-
@owisa-Shaikh @Moderator_3 I use try and except block and print exception as well as response.text and i got this
but only while fetching top_losers, top_gainers works fine. -
@sunil_modi try:
return response.json()
except JSONDecodeError as e:
print("Error parsing JSON:", e)
return None -
@ashis try:
return response.json()
except JSONDecodeError as e:
print("Error parsing JSON:", e)
return None -
@Moderator_3 That's right but i want to know why i am getting this error insteads of following documentation.
would you please tell me how to get chart of nifty50 for first 10 minutes? -
Hello @sunil_modi
Please modify your code in a way of error handling like you need to catch the exception(if any) instead of checking the values.
Regards,
SmartAPI Team -
@ashis what do you want to say, i didn't get this?
-
@sunil_modi said in JSONDecode error in retrieving top loser:
@Moderator_1 i am getting error when i try to use PercPriceLosers datatype to retrieve top loser for other datatype it is working
Ghhajj
Hjjj
J