Re: How to get stock quotes?
Re: How to get stock quotes?
- Subject: Re: How to get stock quotes?
- From: Gibbons Burke <email@hidden>
- Date: Tue, 23 Jul 2002 12:46:01 -0500
At 10:06 AM -0700 7/23/02, Andy Bates wrote:
>
All,
>
>
Could someone tell me how to write a Cocoa application that can get stock quotes from the web? Is it relatively easy for a new Cocoa programmer, or am I biting off more than I can chew?
Apple includes in its suite of Applescript sample scripts an "Internet Script" which uses the SOAP protocol to fetch delayed stock quotes- see the graphic on this page:
http://www.apple.com/applescript/macosx/script_menu/
The scripts for doing internet services can be downloaded here:
<
http://a16.g.akamai.net/7/16/51/c64d8d9baf1976/www.apple.com/applescript/macosx/script_menu/internet_services.sit>
The script calls web services from this site:
http://services.xmethods.net/
So - if you can do SOAP calls from Cocoa you can make this happen, or you can build an Applescript Studio application that does what you want using the script Apple has provided as a guide. Not sure what the limits are on this service.
Another less elegant approach is to shred web pages that provide stock quotes. That's ugly but a lot of the programs do this.
Best for serious trading applications would be to write an application that hooks up to some of the proprietary real-time feeds from Quote.com, eSignal, etc. Unfortunately, most of these services don't provide APIs for Mac developers.
Gibbons Burke
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.