Added refDate and changed query to get last entry
Collecting only enabled minmax values
Now geting the latest minmax data