Alternatively, does anyone know if there a tool that does something similar but is outside of beancount main repository? (I'm not a fan of maintaining my own fork of beancount for this patch)
Thank you, script was useful to me. It was painfully slow to
import 2 years of prices (partially due to inefficient price
source implementation), but from now on I should run this more
frequently so it should be fine.
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/28d0651b-d5ad-4a5d-9944-7944cf1ed217%40googlegroups.com.
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/b471b460-1e64-47f1-91a0-4aba5789aa59n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/d52cdaea-f55e-49b7-b543-8fdac7fb9823n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhPG%2B5-9rfzu93GCRXaKVi865D4bhABfiZVXNOCut9LsYg%40mail.gmail.com.
Regarding the combination of using --update AND --date, Per the documentation, the way I have things setup is that when --update is used, it will "Fetch prices from most recent price for each source up to present day or specified --date" . So in this scenario it will look at the last date fetched and fill in the gaps up till the specified date (2020-10-26). If you already have a price after 2020-10-26 it's not going to do anything.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/224355f3-4f1e-4047-a3fd-5d556d41077dn%40googlegroups.com.
bean-price --update --update-rate daily --data 2020-10-26 -e USD:coinbase/BTC-USD
; -*- mode: org; mode: beancount; coding: utf-8; fill-column: 120
* Options
option "title" "crypto pf ledger"
option "operating_currency" "USD"
option "booking_method" "FIFO"
2020-10-26 commodity BTC
export: "Crypto"
name: "Bitcoin"
price: "USD:coinbase/BTC-USD"
1980-01-01 commodity USD
export: "CASH"
name: "US Dollar"
* Equity Accounts
1980-01-01 open Equity:Opening-Balances
* Banking Accounts
1980-01-01 open Assets:US:BofA:Checking
2020-10-24 * "Opening Balance for checking Account"
Assets:US:BofA:Checking 7100.00 USD
Equity:Opening-Balances -7100.00 USD
* Taxable Investments
1980-01-01 open Assets:US:Crypto:Coinbase:BTC BTC
* Crypto Accounts
2021-01-05 * "Buy BTC at Coinbase"
Assets:US:Crypto:Coinbase:BTC 0.03 BTC {} @ 15000 USD
Assets:US:BofA:Checking -500.00 USD
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/d4bff4b8-2de3-4308-9710-32e8163d2439n%40googlegroups.com.