added a cash age check (updates if older than one day)
modified the api so the history data up to now will be loaded