Could not Understand Faq right..!

Hey, you are on the right track , when you create an ArrayList of TiingoCandle, it basically maps your JSON to your java object.
You basically have an arrayList of all the values from startDate to endDate.
Now your task is to take the last value in this list. ->(For closing Price, it requires the value from the lastDate of your API call).
You can now make use of a DataStructure like HashMap or a HashSet to use it to sort the Symbols on the basis of its closing values
OR you can refer to this reference given under the taskboard.

This uses a compareTo() function in the TotalReturnsDTO POJO , you can sort on the basis of the values provided in this POJO.
You can refer to this FAQ, if you are getting any further errors.
https://forum.crio.do/t/error-spot-bug-class-defines-compareto-and-uses-object-equals/7127/2

You can tag me, if you have any doubts.

Hope I have solved your problem now :slight_smile:

@vipulkrishna How did you end up solving this error?
I keep getting this error

The type TypeReference is not generic; it cannot be parameterized with arguments <ArrayList<TiingoCandle>>

This line works like magic.

i am getting this error @Rahul-Crio.do @vipulkrishna

This function is for object of ObjectMapper() class
I am not able to guess it as You have posted so short snnipted?