function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
CirrusFCCirrusFC 

S Control for stock prices

Has anyone seen any S control that can search yahoo finance to get the closing price of a specific stock?  I am not sure if an S control is even correct since I would like it to run automatically.

 

Ultimately I am looking to create a custom object that daily would grab the open and closing price and trading volume of a stock. 

 

Any help would be appreciated.

 

thank you

forcedotcomforcedotcom

This sounds more like an API function than an S-Control - I think you'd probably need to subscribe to some kind of web service to plug into that data (possibly even free ones out there?).

 

Another option would be to 'screen scrape' the data from a service like yahoo or google, and then use the API to update or insert new records but that would involve some considerable development.

 

As a side note, please remember that salesforce will be turning off the ability to create new S-Controls some time around January 2010 so I would recommend that you look at writing the functionality in Visualforce.

 

forcedotcom