• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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 ]
 
Slideshow boring ... losing consciousness ... just gonna take a quick nap on this tiny ad ...
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic