[GNC] Fetch online quotes not working

Tim Lauber lauber.tim at googlemail.com
Mon Dec 11 10:56:12 EST 2023


Hi everybody,

I am trying to fetch online quotes to setup my portfolio. Im running GnuCash 5.4 and Finance::Quote 1.58 on MacOS 14.0 Sonoma.
When running '/Applications/Gnucash.app/Contents/MacOS/gnucash-cli --debug --quotes dump yahoo_json MSFT’ I get the output:
‘…
* 16:17:13  INFO <gnc.price-quotes> [GncQuotesImpl::query_fq] Query JSON: {
    "defaultcurrency": "EUR",
    "yahoo_json": {
        "MSFT": ""
    }
}

Finance::Quote reported a failure for symbol MSFT: Error retrieving quote for MSFT. Attempt to fetch the URL https://query2.finance.yahoo.com/v11/finance/quoteSummary/symbol=MSFT&modules=price,summaryDetail,defaultKeyStatistics resulted in HTTP response 501 (Not Implemented)’
However when piping the json data from above manually into the binary via 'cat test.json | /Applications/Gnucash.app/Contents/Resources/bin/finance-quote-wrapper -f’, the output is as expected:
'{"MSFT":{"close":374.23,"pe":35.674732,"success":1,"method":"yahoo_json","low":366.1,"open":368.48,"date":"12/11/2023","eps":10.33,"year_range":"      219.35 - 384.3","isodate":"2023-12-11","type":"EQUITY","volume":8061011,"exchange":"NasdaqGS","currency":"USD","last":368.52,"name":"MSFT (Microsoft Corporation)","high":369.56,"symbol":"MSFT","div_yield":0.7455308}}’
What could be the problem here?

Thanks for your help and best regards
Tim Lauber



More information about the gnucash-user mailing list