Hi, I'm trying to create a custom bean-price importer. I'm scraping prices from a paginated set of prices. I can retrieve 20 prices at once.
I noticed that bean-price -v -i --no-cache --update test.bean will call beanprice.source.Source.get_historical_price() for every day between 2023-11-18 and 2023-11-01 if test.bean contains this commodity definition: 2023-11-01 commodity A12CX1 name: "Vanguard FTSE Developed World (Dist)" price: "EUR:myimporter/IE00BKX55T58" While this seems to work it is not really efficient. I could retrieve this period at once using one single request. Bean-price makes 18 individual requests. (Additionally, a running into a rate limit is very likely for larger time periods). beanprice.source.Source has a method called get_prices_series. How can I leverage that? -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/4ba9e681-5ca5-4067-b2bf-558204cd995an%40googlegroups.com.
