Bill -

when you click on the "Download" button, this is the string that gets sent
(for my request):
http://ichart.finance.yahoo.com/table.csv?s=%5EGSPC&a=00&b=3&c=1950&d=06&e=28&f=2007&g=d&ignore=.csv

Decoding this from knowing what I requested:
Var Value Meaning
s '^GSPC' Symbol for S&P returns
a 00 month-1 for start of series (January)
b 3 day for start of series
c 1950 year for start of series
d 06 month-1 for end of series (July)
e 28 day for end of series=today
f 2007 year for end of series
g d ?
ignore .csv Maybe the file format?

Apologies for the hash my mail editor makes of the neat table I assembled.

So I could build a string like this and use "wget" to pull it into J?

Regards,

Devon

On 7/28/07, Bill Harris <[EMAIL PROTECTED]> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Elmer Fittery <[EMAIL PROTECTED]> writes:
>
> > If you click this, you will have displayed the historical stock data for
> > about 1 month.  If you scroll to the bottom of the screen, you can
> > select "Download To Spreadsheet".
>
> Cool.  If that's a link and not a Javascript, perhaps wget is your
> friend.
>
> > Now all I have to do is find some J code that will the tab deleated data
> > file and turn it into an J array.
>
> Perhaps
>
> load'csv'
> data=: readcsv filename
>
> Bill
> - --
> Bill Harris                      http://facilitatedsystems.com/weblog/
> Facilitated Systems                              Everett, WA 98208 USA
> http://facilitatedsystems.com/                  phone: +1 425 337-5541
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (MingW32)
> Comment: For more information, see http://www.gnupg.org
>
> iD8DBQFGq4Du3J3HaQTDvd8RAgY1AJ9FdtTO6aTYz63f5H1oUruQlSxBxwCcCGzb
> QgzsmyyhFkgHEpxx+CxihNI=
> =adcf
> -----END PGP SIGNATURE-----
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to