[GNC] [Finance-quote-news] Finance-Quote 1.56 released!

John Ralls jralls at ceridwen.us
Wed May 31 07:29:22 EDT 2023


wriite2mark,

F::Q 1.56 does work with GnuCash:

/Applications/Gnucash.app/Contents/MacOS/gnucash-cli -Q dump yahoo_json AAPL
Application Path /Applications/Gnucash.app/Contents/MacOS/gnucash-cli

Finance::Quote fields GnuCash uses:
    symbol: AAPL            <=== required
      date: 05/30/2023      <=== recommended
  currency: USD             <=== required
      last: 177.3           <=\
       nav:                 <=== one of these
     price:                 <=/

There's a perl script that directly exercises F::Q in the cpan build directory; on my system that's
~/.cpan/build/Finance-Quote-1.56-0/Examples/stockdump.pl yahoo_json IBM
$VAR1 = {
          'IBMeps' => '2.24',
          'IBMname' => 'IBM (International Business Machines)',
          'IBMpe' => '57.80357',
          'IBMhigh' => '130.0699',
          'IBMvolume' => 3699033,
          'IBMisodate' => '2023-05-30',
          'IBMdiv_yield' => '5.1206455',
          'IBMlow' => '128.26',
          'IBMcurrency' => 'USD',
          'IBMmethod' => 'yahoo_json',
          'IBMlast' => '129.48',
          'IBMsymbol' => 'IBM',
          'IBMyear_range' => '      115.55 - 153.21',
          'IBMopen' => '129.56',
          'IBMclose' => '128.89',
          'IBMtype' => 'EQUITY',
          'IBMsuccess' => 1,
          'IBMdate' => '05/30/2023',
          'IBMexchange' => 'Sourced from Yahoo Finance (as JSON)'
        };

Regards,
John Ralls


> On May 30, 2023, at 20:06, write2mark1 at gmail.com wrote:
> 
> Finance::Quote::YahooJSON couldnt get it to work
> any help or advise appreciated
> 
> On Tue, May 30, 2023 at 12:40 PM Bruce Schuck <bschuck at asgard-systems.com>
> wrote:
> 
>> On 5/30/23 9:45 AM, write2mark1 at gmail.com wrote:
>> 
>>> What do you mean?
>> 
>> If you look for where the URL used for the data fetch is defined in the
>> source code
>> (
>> https://raw.githubusercontent.com/finance-quote/finance-quote/master/lib/Finance/Quote/YahooJSON.pm),
>> 
>> you will see what I mean.
>> 
>>> Bruce yahoo finance has completely shut down their quotes api
>>> 
>> https://docs.google.com/forms/d/e/1FAIpQLSeyb7xMtZFjoNYI7XG1rjlhUopKAxdLAfSRcaPxg9p-9ii-_g/viewform
>> <
>> https://docs.google.com/forms/d/e/1FAIpQLSeyb7xMtZFjoNYI7XG1rjlhUopKAxdLAfSRcaPxg9p-9ii-_g/viewform
>>> 
>> 
>> Shh... don't tell Yahoo this one still works (but as I stated in another
>> thread or two, I expect it to go dark sometime between next week and
>> next year).
>> 
>> Bruce S.
>> 
> <yj.sh><s.sh><a.pl><sss.sh><stkqpl.sh>_______________________________________________
> 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