Stock split information

Steve D. Perkins mailinglists@steveperkins.net
Fri, 18 May 2001 17:20:46 -0400


    Thanks alot for the info!  I've been tinkering around with it though,
and haven't been able to find a security for which the stock split element
is returned in the XML string generated by quote.dll.  After looking at some
of the other pages on the NASDAQ web site, I notice that there are other
values that can be passed to the 'page' and 'mode' CGI parameters.
Unfortunately, there's no documentation anywhere that I've found for
describing exactly which values are understood and what they all do.  If
anyone has any further information about the quote feed API available
through nasdaq.com... please either post it to the list or email me.
Thanks!

Cheers,
Steve



----- Original Message -----
From: "Paul Fenwick" <pjf@cpan.org>
To: "Steve D. Perkins" <stevedperkins@hotmail.com>
Cc: <gnucash-devel@lists.gnumatic.com>
Sent: Thursday, May 17, 2001 9:57 PM
Subject: Re: Stock split information

G'day Steve,

On Thu, May 17, 2001 at 08:36:51PM -0400, Steve D. Perkins wrote:

[snip]

>     I stumbled across GnuCash in the process of researching a solution for
my
>     problem.  If users can use GnuCash to track their investment holdings,
>     then I am assuming GnuCash has the ability to automatically adjust
>     positions based on splits (please correct me if it is the case that
users
>     must manually inform GnuCash about stock splits).  I have spent the
past
>     couple of days pouring over the Perl source code in the Finance::Quote
>     module used by GnuCash... but have had no success in finding the
solution
>     (the module seems to be completely dependant on the same Yahoo API
used
>     by my bean for domestic stocks).

If you're thinking that F::Q can't detect stock-splits, then you'd
be right, and if Yahoo have removed the tag which indicates that
then we might be both in the same boat.

Of course, Yahoo isn't the only source for quotes and information.
Try taking a look at:

 http://quotes.nasdaq.com/quote.dll?page=xml&mode=stock&symbol=SUNW

for a very nice chunk of market information in XML.  There's a DTD
available at:

 http://www.nasdaq-amex.com/reference/NasdaqAmexDotCom.dtd

Which makes mention of:

<!-- ***** SSK   18-Jan-01   Add Stock split element and attribute ***** -->
<!ELEMENT stock-split (#PCDATA)>
<!ATTLIST stock-split effective-date CDATA #IMPLIED>

Which to me looks like it would be a good way of detecting stock-splits.
(Of course, you'd want to find a splitting/split stock to see the
element in action.)

Hope that this helps.

Cheers,

 Paul

--
Paul Fenwick <pjf@cpan.org>         | "When I see an adult on a bicycle,
Senior Consultant                   |  I have a hope for the human race."
Obsidian Consulting Group           |      -- H.G. Wells