Build Sucess! but assessment failed

actualy i am not able to tackle cases, so when there is an invalid stock the api will give me an error, how to tackle that result, i tried try catch but it doesn’t worked

Make sure you didn’t hardcode anything

Try throwing exception when the above scenario occurs

Go through this link and tell me if it helps

Well, if you know that API can indeed result into null, then try thinking what would you expect the program to do and handle it accordingly.

no sir i am not hard-coding anything ,so i have to throw some kind of exception?

Hey @tanishq15 , Have a look here - How to pass Calculate Returns Varying Date Ranges and Calculate Returns Old Trades