Re: bean-price Alphavantage example

2024-09-18 Thread 'Patrick Ruckstuhl' via Beancount
one thing that is in the bean-price alphavantage importer is to deal with rate limit of alphavantage, if there is an issue with the request, it sleeps for 60 seconds and then tries again. Maybe you hit that one. On 19.09.2024 03:39, 'Aaron Axvig' via Beancount wrote: The direct URL returns a n

Re: bean-price Alphavantage example

2024-09-18 Thread 'Aaron Axvig' via Beancount
The direct URL returns a nice JSON with price data in it, instantly. I let the bean-price command run for a while and it finished after a couple minutes.  I'll stew on it. On Wed, 2024-09-18 at 08:17 +0200, 'Patrick Ruckstuhl' via Beancount wrote: > That sounds weird, can you try to call the foll

Re: bean-price Alphavantage example

2024-09-17 Thread 'Patrick Ruckstuhl' via Beancount
That sounds weird, can you try to call the following URLs https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol=IBM&apikey=demo and https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol=AAPL&apikey=yourkey maybe with curl? On 18.09.2024 03:39, 'Aaron Axvig' via Beancount

Re: bean-price Alphavantage example

2024-09-17 Thread 'Aaron Axvig' via Beancount
Very strange, it just sits and does nothing after starting the HTTPS connection.  So that makes me wonder I have some other network problem, because I was using the Yahoo source on a different machine and that started hanging in a similar way a couple weeks ago.  I thought that was just Yahoo cutti

Re: bean-price Alphavantage example

2024-09-17 Thread 'Patrick Ruckstuhl' via Beancount
Hi, sure, first you have to provide the api key as an environment variable e.g. something like export ALPHAVANTAGE_API_KEY=demo and then call it like bean-price -e 'USD:alphavantage/price:AAPL:USD' -vv Regards, Patrick On 17.09.2024 14:53, 'Aaron Axvig' via Beancount wrote: Could someone