- maintain a database of stock symbols, quotes, and the last time retrieved.
- on each GGI request for a quote, retrieve the quote from the database. If it is not available or the last time retrieved is older than the max freshness time (say, five minutes), grab the quote from the external host and update the database.
This will ensure that application supplies the latest quotes (within five minutes) while avoiding unnecessary requests for quotes.
In reply to Re: program with a timer
by sutch
in thread program with a timer
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |