The 1st question I solved few days ago, the real-time fluctuated price can be closed a transaction.
The 2nd question about resedulng task for daily calculation, I have just refer to scheduling r functions after every particular time interval and test it just now Rescheduled time unit.