This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams and have Darcy DeClute on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Executing stock transactions

 
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everybody,

I hope you are doing fine and you are ready to heare this challenging problem.
I am designing a system to enable people to trade stocks virtually.
When somebody wants to sell/buy stock he has the option of telling the system not to execute this transaction until the price of the stock reaches a certain threshold T, and he also specifies that a date limit D at which ( if the price have not reached the threshold, the transaction is canceled.)

With that in mind, in my application stock quotes are brought in using Yahoo RSS feed every second. and those kind of transactions are stored in the database with their status being set to pending along with their corresponding treshold and date limit.

What is the way to handle the event of the price changing to reach the given threshold quickly enough (not to loose it) and without making the server too busy ==> by at each time load all the transactions with incomplete for all users and check the prices of all stocks ??

I would love if you can point me in the right direction, and tell me whether there is a simple solution or should I use some frameworks or anything else. I have been stuck for a week with this provblem now.

I really appreciate your help,
Thank you.
[ April 19, 2007: Message edited by: Bear Bibeault ]
 
Self destruct mode activated. Instructions for deactivation encoded in this tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic