[GNC] Cannot get online quotes

Emilio Dorigatti emilio.dorigatti at gmail.com
Fri Sep 25 12:46:25 EDT 2020


Hi John,

thank you for the hint, that command works correctly. Turns out I 
misunderstood how exchanges work (beginner...), and the exchange I need 
is not supported. US stocks work fine in GnuCash, so no problem there.

Emilio.

On 9/25/20 6:32 PM, John Ralls wrote:
>
>> On Sep 25, 2020, at 12:49 AM, Emilio Dorigatti <emilio.dorigatti at gmail.com> wrote:
>>
>> Hi all,
>>
>> I am trying to setup online quotes as per the guide [1]. I am at the latest version
>>
>> # gnc-fq-update
>> Reading '/root/.cpan/Metadata'
>>    Database was generated on Fri, 25 Sep 2020 01:29:03 GMT
>> Date::Manip is up to date (6.82).
>> Finance::Quote is up to date (1.49).
>>
>> And no errors are returned from check:
>>
>> $ gnc-fq-check
>> ("1.49" "adig" "aex" "aiahk" "alphavantage" "amfiindia" "asegr" "asx" "aufunds" "australia" "bamosz" "bet" "bmonesbittburns" "bourso" "bse" "bsero" "canada" "canadamutual" "citywire" "cominvest" "cse" "deka" "dutch" "dwsfunds" "europe" "fetch_live_currencies" "fidelity" "fidelity_direct" "fidelityfixed" "financecanada" "finanzpartner" "finland" "fool" "france" "ftfunds" "ftportfolios" "ftportfolios_direct" "fundlibrary" "goldmoney" "greece" "hex" "hu" "hufund" "hungary" "hustock" "iexcloud" "indiamutual" "known_currencies" "lerevenu" "maninv" "morningstar" "morningstarau" "morningstarch" "morningstarjp" "mstaruk" "nasdaq" "nyse" "nz" "nzx" "platinum" "romania" "seb_funds" "sixfunds" "sixshares" "stockhousecanada_fund" "tdefunds" "tdwaterhouse" "tiaacref" "tnetuk" "troweprice" "troweprice_direct" "trustnet" "tsp" "tsx" "uk_unit_trusts" "ukfunds" "unionfunds" "usa" "usfedbonds" "vanguard" "vwd" "yahoo_json" "yahoo_yql" "za" "za_unittrusts")
>>
>> However, dumping fails with all sources:
>>
>> $ gnc-fq-dump -v europe AMZN
>>
>> Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/share/perl5/site_perl/HTML/TreeBuilder.pm line 108.
>>
>> Finance::Quote fields Gnucash uses:
>>
>>      symbol: AMZN (deduced)       <=== required
>>
>>        date: ** missing **        <=== recommended
>>
>>    currency: ** missing **        <=== required
>>
>>        last: **missing**          <=\
>>
>>         nav: **missing**          <=== one of these
>>
>>       price: **missing**          <=/
>>
>>    timezone:                      <=== optional
>>
>> ** This stock quote cannot be used by GnuCash!
>>
>> All fields returned by Finance::Quote for stock AMZN
>>
>> stock           field  value
>>
>> -----           -----  -----
>>
>> AMZN         errormsg: HTTP session failed
>>
>> AMZN             last: **missing**
>>
>> AMZN              nav: **missing**
>>
>> AMZN            price: **missing**
>>
>> AMZN          success: 0
>>
>> And obviously fails within GnuCash, too. I don't know how I am supposed to specify the currency? Or perhaps there are connection issues to the servers?
> Why would you expect to retrieve a quote for a US stock (Amazon.com) from the French, Finnish, Greek, or Romanian exchanges, those being the modules the export a "europe" method?
>
> What happens if you do
>
> gnc-fq-dump -v yahoo_json AMZN
>
> ?
>
> Regards,
> John Ralls
>


More information about the gnucash-user mailing list