In TODOS it is given:
// Find out the closing price of the stock on the endDate and // return the list of all symbols in ascending order by its close value on // endDate
Is the endDate in the above comment the last data at which stock price is available or the args argument provided from command line.
This is a bit confusing because some stocks dont have prices on the endDate given by args,
for e.g. for testcase : ./gradlew run --args=“trades.json 2020-01-01”
args endDate = 2020-01-01
but there is no price for any symbol at endDate 2020-10-10 in the response.
So do i return an empty list or use the last date present in the response object ?