I don't think so. Conversions is something you should be doing from the caller side. Price sources should always return numbers in original quote currencies
On Sun, Apr 11, 2021, 14:52 'Patrick Ruckstuhl' via Beancount < beancount@googlegroups.com> wrote: > Hi, > > I started looking into moving my price fetchers into beanprice and > noticed something. > > Most of my price sources actually allow you to specify in which base ccy > to return the result. > > As far as I can tell, at the moment the Source interface > > https://github.com/beancount/beanprice/blob/master/beanprice/source.py > > doesn't have a way where you can request prices in a certain base ccy, > the only thing the source can do is specify in which base ccy it did > return them. > > Should the source contract be extended to (optionally) allow to specify > the desired base ccy? > > > Regards, > > Patrick > > > -- > 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 beancount+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beancount/dd26456f-bc40-356e-ada7-aa4729425355%40ch.tario.org > . > -- 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 beancount+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhNzf%2BdNsZgMOgzsPtmgOKAPd0_QT-AQhftcuby5NKOMGw%40mail.gmail.com.