Hi there,
I'm new to beancount and I'm trying to use it to bring sanity to some old
Bitcoin transactions.
I start off making the odd purchase of BTC in Australian dollars using the
Coinjar service with one beancount account for BTC and one for AUD.
However, once I move 1.0 BTC out of my Coinjar BTC account into a paper
wallet, subsequent purchases throw an error in bean-check:
No position matches "Posting(account='Assets:AU:Coinjar:BTC',
units=0.162288 BTC,
cost=CostSpec(number_per=Decimal('924.2827565808932268559597752'),
number_total=None, currency='AUD', date=None, label=None, merge=False),
price=None, flag=None, meta={'lineno': 24, 'filename':
'/home/dave/fin/accounts/bitcoin-test.beancount'})" against balance (-1.0
BTC, 0.230398 BTC {651.0473181190808947994340229 AUD, 2013-12-19}, 0.673358
BTC {742.5470552068884605217432629 AUD, 2013-12-17}, 0.149156 BTC
{1005.658505189197886776261096 AUD, 2013-12-10}, 0.14161 BTC
{1059.247228303085940258456324 AUD, 2013-11-27}, 0.118776 BTC
{1262.881390179834309961608406 AUD, 2013-11-29})
But of course no existing position matches; this is a new lot I'm
purchasing. Here's a simple sample file to reproduce. Could someone perhaps
clarify where I've gone wrong? Thanks for your time; I've read the
documentation on booking trades several times but I'm afraid I can't make
sense of this error.
2013-11-27 open Assets:AU:Coinjar:BTC BTC
2013-11-27 open Assets:AU:Coinjar:Cash AUD
2013-11-27 open Assets:AU:ColdStorage:BTC BTC
2013-11-27 * "Buy BTC"
Assets:AU:Coinjar:BTC 0.14161 BTC
{1059.247228303085940258456324 AUD}
Assets:AU:Coinjar:Cash -150.00 AUD
2013-11-29 * "Buy BTC"
Assets:AU:Coinjar:BTC 0.118776 BTC
{1262.881390179834309961608406 AUD}
Assets:AU:Coinjar:Cash -150.00 AUD
2013-12-10 * "Buy BTC"
Assets:AU:Coinjar:BTC 0.149156 BTC
{1005.658505189197886776261096 AUD}
Assets:AU:Coinjar:Cash -150.00 AUD
2013-12-17 * "Buy BTC"
Assets:AU:Coinjar:BTC 0.673358 BTC
{742.5470552068884605217432629 AUD}
Assets:AU:Coinjar:Cash -500.00 AUD
2013-12-19 * "Buy BTC"
Assets:AU:Coinjar:BTC 0.230398 BTC
{651.0473181190808947994340229 AUD}
Assets:AU:Coinjar:Cash -150.00 AUD
2014-01-05 * "Deposit Cold storage"
Assets:AU:ColdStorage:BTC 1.0 BTC
Assets:AU:Coinjar:BTC -1.0 BTC
; The following tx now throws an error though it is syntactically identical
to the
; purchases above. Why?
2014-01-28 * "Buy BTC"
Assets:AU:Coinjar:BTC 0.162288 BTC
{924.2827565808932268559597752 AUD}
Assets:AU:Coinjar:Cash -150.00 AUD
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/2beb84b0-8f10-4c40-b6d5-abfa2b77cda5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.