pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: finance/py-Finance-Quote issue
Yeah I don't use the nyse quote source; that was just for debugging.
I actually use the alphavantage source on my ``production'' and have
done so since alphavantage was introduced many years ago. The API KEY
is set in my ~/.xsession file and has not changed since it was first
introduced.
ALPHAVANTAGE_API_KEY="LEA9BZT0OFF8BEKS"; export ALPHAVANTAGE_API_KEY
When I try to get data using alphavantage I get
# gnucash-cli --quotes dump alphavantage AAPL AMD
main: Error on gnc_gbr_init: Unable to open /proc/self/maps for reading.
Finance::Quote reported a failure for symbol AAPL: Not Implemented
Finance::Quote reported a failure for symbol AMD: Not Implemented
which sounds to me like alphavantage doesn't exist even though it is
listed right near the top in the output from the info command:
# gnucash-cli --quotes info
main: Error on gnc_gbr_init: Unable to open /proc/self/maps for reading.
Found Finance::Quote version 1.61.
Finance::Quote sources:
aex alphavantage amfiindia aasegr asx
...
#
Trying a couple of yahoo quote sources which should not require a
log-in, I get
gnucash-cli --quotes dump yahoo_json AAPL AMD
main: Error on gnc_gbr_init: Unable to open /proc/self/maps for reading.
Finance::Quote reported a failure for symbol AAPL: Error retrieving
quote for AAPL. Attempt to fetch the URL
https://query2.finance.yahoo.com/v11/finance/quoteSummary/?symbols=AAPL&crumb=LWP
will support https URLs if the LWP::Protocol::https module
is installed.
&modules=price,summaryDetail,defaultKeyStatistics resulted in HTTP
response 501 (Not Implemented)
Finance::Quote reported a failure for symbol AMD: Error retrieving quote
for AMD. Attempt to fetch the URL
https://query2.finance.yahoo.com/v11/finance/quoteSummary/?symbols=AMD&crumb=LWP
will support https URLs if the LWP::Protocol::https module
is installed.
&modules=price,summaryDetail,defaultKeyStatistics resulted in HTTP
response 501 (Not Implemented)
#
# gnucash-cli --quotes dump yahooweb AAPL AMD
main: Error on gnc_gbr_init: Unable to open /proc/self/maps for reading.
Finance::Quote reported a failure for symbol AAPL: 501 Protocol scheme
'https' is not supported (LWP::Protocol::https not installed)
Finance::Quote reported a failure for symbol AMD: 501 Protocol scheme
'https' is not supported (LWP::Protocol::https not installed)
#
How do I install the LWP::Protocol::https module? Shouldn't pkgsrc
handle the dependency?
On Thu, 15 Aug 2024, Brian Buhrow wrote:
hello Paul. Based on the error message, it sounds like you need
to have an account with the quote provider and that provider needs to
issue you an API key to use as an authentication token for retrieving
such quotes. If you have such a key, then it seems like the way you
tell the software about the key has changed and a reading of the pm
module might yield clues about how to tell the software about your key.
Hope that helps.
-Brian
!DSPAM:66bdf89a216397768019720!
+---------------------+--------------------------+----------------------+
| Paul Goyette (.sig) | PGP Key fingerprint: | E-mail addresses: |
| (Retired) | 1B11 1849 721C 56C8 F63A | paul%whooppee.com@localhost |
| Software Developer | 6E2E 05FD 15CE 9F2D 5102 | pgoyette%netbsd.org@localhost |
| & Network Engineer | | pgoyette99%gmail.com@localhost |
+---------------------+--------------------------+----------------------+
Home |
Main Index |
Thread Index |
Old Index