how to add ASE stock prices to stock quote module?

Morten Cools morten at cools.no
Wed May 4 17:24:51 EDT 2005


Hi

Well, I've modified one of the existing modules to support ASE. I've
tested it a bit, and it seems to work all right. It only returns the
values I found in the Closing-db for stocks, but it seems to be enough.
However, I should probably mention that I am stock illiterate, so what
seems enough to me, might not be to someone living in the real
world. :) 

I include the module as an attachment here, along with a simple perl
script to demonstrate it's possible use.

To use this module, you would copy it to your Finance/Quote dir,
probably something like /usr/lib/perl5/vendor_perl/5.8.6/Finance/Quote,
and then you have two options.

1. Call the module from your perl-script with
Finance::Quote->new("ASEGR");

2. Modify Finance/Quote.pm by adding ASEGR to @modules. This will make
applications that retrieve their sources from Finance::Quote, like
dump-finance-quote, to find it.

To the best of my knowledge, though, Gnucash 1.8 will not be able to use
this module, since it's exchanges are hardcoded.

If anyone has suggestions for improvement, or bugs that need to be
fixed, let me know, and I'll see what I can do.

Let me know if it works allright for you :)

Morten

On Wed, 2005-05-04 at 14:44 +0300, Nikos Charonitakis wrote:
> ASE=Athens stock exchange
> i ve posted some years before a similar message to this list and it
> was suggested to make a patch  for this purpose.
> Since i m not a programmer i would like to ask how easy is  to take
> another module  xxx.pm and modify it?
> Is there any particular requirements for the source format  of prices
> ? (i found a text , html, and xsl soures)
> http://www.ase.gr/content/en/MarketData/Stocks/Prices/Files/txt/20050503.txt
> http://www.ase.gr/content/en/MarketData/Stocks/Prices/Daily_Prices.asp?3/5/2005
> http://www.ase.gr/content/gr/Marketdata/Stocks/Prices/Files/xls/20050503.xls
> 
> thanks in advance
> 
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
-- 
Email: morten at cools.no
PGP-key available at http://www.keyserver.net - Key ID F2586BED
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ASEGR.pm
Type: application/x-perl
Size: 4514 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20050504/1dca65ed/ASEGR.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Test_ASEGR.pl
Type: application/x-perl
Size: 839 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20050504/1dca65ed/Test_ASEGR.bin


More information about the gnucash-devel mailing list