[GNC] loading custom F::Q module from GNC

Murugan Muruganandam m.muruganandam at hotmail.com
Wed Aug 23 14:02:54 EDT 2023


Kalpesh

I use a privately developed module for fetching price for  mutual funds. The prices are not directly public and so it is a localized solution.


  1.  place your <filename>.pm in the C:\Strawberry\perl\site\lib\Finance\Quote folder
  2.  update the C:\Strawberry\perl\site\lib\Finance\Quote\quote.pm to include your module name under @Modules
  3.  After restart you should be able to see your module in the "unknown" source quote drop down

Not sure if this was your question. for me it works like a charm, only challenge is that whenever i re install or update finance quote, i have to redo this step one time



Saludos Cordiales


Murugan

________________________________
From: gnucash-user <gnucash-user-bounces+m.muruganandam=hotmail.com at gnucash.org> on behalf of Kalpesh Patel <kalpesh.patel at usa.net>
Sent: Wednesday, August 23, 2023 1:21 PM
To: gnucash-user at gnucash.org <gnucash-user at gnucash.org>
Subject: [GNC] loading custom F::Q module from GNC

Is there a simpler way, by way of possibly configuration specification, from
GNC to utilize a privately developed F::Q module for pricing without
modifying any of the official underlying release code for F::Q?



>From reading F::Q documentation, it mentions that I can pass the privately
developed module to the Finance::Quote->new() call but that assumes that I
am instantiating in a script or something similar and have control over the
declaration which I do not for GNC.



I am hoping for something simple like put a single Perl .pm module file into
a directory, add/append some option setting in a GNC configuration file or
command line which makes it available under ‘type of quote source’ à
‘Unknown’ in the ‘Edit Security’ window to select, and then get called when
‘Get Quotes’ is pressed from ‘Price Database’.















_______________________________________________
gnucash-user mailing list
gnucash-user at gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


More information about the gnucash-user mailing list