This page loops through all the stocks to update closing prices in dailyclosetable. The page uses getallsymbols.php to retrieve the list of symbols. It then loops through each of the symbols and pushes each to the array arr. It then sets a timer of 1000ms and retrieves/updates each symbol to dailyclosetable using updatedaily.php (symbol). The updating ends after the currentpos reaches the array length. Once 500 updates are done, an admin push is sent using simplepush.php(token,message=updatesuccess+date). The updates are presented in this page in #message element.


This will call doAjax()