Hi Ivan. I've faced a similar issue recently and I think I've got the answer. When using bean-price -e it does not know that how you've set up the commodity. E.g. I have Armenian Drams represented on *my* ledger as ARMD to not confuse with ARM stocks, but someone who does not have any stocks might set up ARM as Armenian Drams. So bean-price only fetches a ticker you've provided. In. order to get the result you expect, declare a commodity first
; ledger.bean 2024-06-20 commodity USDT price: "EUR:coinbase/USDT-EUR" and then run bean-price against the ledger > bean-price ledger.bean 2024-06-20 price USDT 0.932545 EUR воскресенье, 16 июня 2024 г. в 17:35:15 UTC+4, Ivan Petrov: > Hello everyone, I'm relatively new to PTA community and trying to deal > with each part of beancount setup. I've managed to use great tool > beanprice, but see one misbehaviour. > > bean-price -e 'USD:yahoo/ETH-USD' > gives me > 2024-06-15 price ETH-USD 3535.0425 USD > while i obviously want > 2024-06-15 price ETH 3535.0425 USD > > How can I setup beanprice to return me in a correct way? -- 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/c2f65c1e-33e9-4abe-8e71-25c7b114053fn%40googlegroups.com.
