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
_______________________________________________
gnucash-user mailing list
[email protected]
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.