Re: v3 installation, testing, docs

2024-07-27 Thread Eric Altendorf
On Sun, Jul 21, 2024 at 9:35 PM Martin Blais wrote: > On Tue, Jun 25, 2024 at 4:23 PM Eric Altendorf > wrote: > >> >> Second is a question, for me specifically right now I'd like to revisit >> my cost-basis PR, which means I'd like to get beancount set up in dev mode

Re: v3 installation, testing, docs

2024-07-23 Thread Eric Altendorf
t; >> Thanks for pointing out doc updates need Eric, I'll fix those when I can >> find some time. >> >> On Tue, Jun 25, 2024 at 4:25 PM Eric Altendorf >> wrote: >> >>> Oh, I forgot, I think I mentioned this before, but the v2 install doc: >&

Re: How to record a stock split?

2024-06-26 Thread Eric Altendorf
if i were doing this i think i'd look into using a different symbol for pre and post split. it just feels cleaner to think of the pre-split shares as being a fundamentally different thing than the post-split. not sure how hard it would be to keep price fetching working, and suppress realization

Re: v3 installation, testing, docs

2024-06-25 Thread Eric Altendorf
Eric Altendorf wrote: > https://github.com/beancount/beancount?tab=readme-ov-file > still says v3 is unstable and kinda suggests using v2 as the "current" > stable version. I recommend making it clearer that v3 is the default > current version to use now, and remarking that

v3 installation, testing, docs

2024-06-25 Thread Eric Altendorf
https://github.com/beancount/beancount?tab=readme-ov-file still says v3 is unstable and kinda suggests using v2 as the "current" stable version. I recommend making it clearer that v3 is the default current version to use now, and remarking that some 3rd party systems (e.g. fava) may require use

Re: How to list all lots with their buying and selling history

2024-06-13 Thread Eric Altendorf
Not sure about beanquery, but I did lot tracking and reporting in https://github.com/ericaltendorf/magicbeans if the code there is useful for ideas. On Thu, Jun 13, 2024 at 07:37 Chary Chary wrote: > It looks like you will need to group (or to link) postings by *lot*, but > I also couldn't

Re: Cryptocurrencies transactions that are exchanges (cost basis)

2024-04-26 Thread Eric Altendorf
On Fri, Apr 26, 2024 at 4:49 PM Simon Michael wrote: > On 2024-03-19 08:37, Eric Altendorf wrote: > > Hmm, i guess my example doesn't include any account transfers. > > > > My understanding is cost bases are attached to lots which are tracked in > > accounts. So if

Re: Changes to support cost transfers

2024-04-13 Thread Eric Altendorf
could be to ensure > before/after results match. > LMK what you'd like to do, > > > > On Thu, Apr 11, 2024 at 12:10 PM Eric Altendorf > wrote: > >> I have revisited the work I did earlier to tweak Beancount to propagate >> cost basis with asset tr

Changes to support cost transfers

2024-04-11 Thread Eric Altendorf
I have revisited the work I did earlier to tweak Beancount to propagate cost basis with asset transfers. (As has been discussed, this is a bit of a corner case in general, but is actually very common and important for capital gains calculations for cryptocurrency assets, since they are frequently

Re: ATM Transaction that has Fee included in Total

2024-03-20 Thread Eric Altendorf
oops, old email On Mon, Feb 26, 2024 at 10:54 AM CD wrote: > You wrote... > > "First comment; the code >withdrawal_amount % 2 != 0" > > How about... fee_amount = withdrawal_amount % 10... > that's probably a good heuristic within the US, i don't think many ATMs dispense denominations

Re: Cryptocurrencies transactions that are exchanges (cost basis)

2024-03-19 Thread Eric Altendorf
Hmm, i guess my example doesn't include any account transfers. My understanding is cost bases are attached to lots which are tracked in accounts. So if you have 100 ETH in account A and 100 ETH in account B, and you sell or transfer from Account A, it will FIFO the lots in Account A and ignore

Re: Cryptocurrencies transactions that are exchanges (cost basis)

2024-03-17 Thread Eric Altendorf
TLDR: it's a hack to try to get beancount to carry cost basis along if that position is ever transferred to another account. There have been a bunch of discussions about this and to be honest, I'm not 100% confident in the current state of affairs. In general, beancount is not very reliable

Re: Seeking beta-testers/devs for crypto tax tools

2024-03-16 Thread Eric Altendorf
git clone, build locally and mangle my PYTHONPATH. > > > On Sat, Mar 16, 2024 at 6:51 PM Eric Altendorf > wrote: > >> On Wed, Feb 28, 2024 at 10:19 AM CD wrote: >> >>> Thank you. I think I have the CoinbaseImporter set up properly but it >>> is say

Re: Seeking beta-testers/devs for crypto tax tools

2024-03-16 Thread Eric Altendorf
On Wed, Feb 28, 2024 at 10:19 AM CD wrote: > Thank you. I think I have the CoinbaseImporter set up properly but it is > saying it can't import beangulp. > python package management is, IMHO, a complete disaster. also IMHO beancount has lingering out of date documentation files, as well as

Re: Cryptocurrencies transactions that are exchanges (cost basis)

2024-03-16 Thread Eric Altendorf
All of the following is not tax or accounting advice, but simply my understanding. Feedback from other beancounters would be welcome. I think you have to figure out the USD values yourself, based on your assessment of the FMV. Here's some examples of how I structure exchanges. (Reminder: this

Re: Licensing of beancount derivatives

2024-02-26 Thread Eric Altendorf
On Mon, Feb 26, 2024 at 12:42 PM Daniele Nicolodi wrote: > On 26/02/24 18:11, Eric Altendorf wrote: > > Is beancount code used in fava or smart_importer? > > > > derivatives should indeed be GPL but if you simply write code that > > interfaces with the core beancoun

Re: ATM Transaction that has Fee included in Total

2024-02-26 Thread Eric Altendorf
First comment; the code withdrawal_amount % 2 != 0 checks for "evenness" in the sense of odd (1, 3, 5) vs even (2, 4, 6) numbers. This doesn't seem like what you'd want, since if your fee were $5 and you withdraw $100, it would count it one way, but if the fee were $2 it would count it the

Re: Licensing of beancount derivatives

2024-02-26 Thread Eric Altendorf
Is beancount code used in fava or smart_importer? derivatives should indeed be GPL but if you simply write code that interfaces with the core beancount code, I think you can use any license you want (though I am not a lawyer) On Mon, Feb 26, 2024 at 8:21 AM Chary Chary wrote: > Dear all, > > I

Re: Seeking beta-testers/devs for crypto tax tools

2024-02-25 Thread Eric Altendorf
If you're new to both Beancount and Python, it could be ambitious to get deep into this experimental package :) But no harm in giving it a try! I will write some installation/getting-started docs on github and then get back to you. Thanks for the interest! On Sat, Feb 24, 2024 at 11:28 AM CDT

Re: Seeking beta-testers/devs for crypto tax tools

2024-02-17 Thread Eric Altendorf
It's 2024, so, time to dust off Magicbeans and prepare 2023 taxes -- hope folks don't mind me bumping this thread. If anyone else is interested in using Beancount to track crypto transactions, take a look below and if you're willing to beta-test and help develop, feel free to reach out to me.

Re: Automatically flagging expenses of interest

2024-01-24 Thread Eric Altendorf
This would probably be more useful if users can provide their own examples of abnormal and normal expenses. In that case, the model itself is probably not very difficult; I imagine a variety of off the shelf toolkits would work. To me, the harder part seems like making the workflow smooth and

Re: Seeking beta-testers/devs for crypto tax tools

2023-10-31 Thread Eric Altendorf
No worries. I suspect that a lot of crypto traders/investors fall into these categories: - Casual users who make minimal trades on one or two exchanges. These are probably adequately served by existing commercial offerings like cointracker.io etc. - Professional traders who already have some

Seeking beta-testers/devs for crypto tax tools

2023-10-26 Thread Eric Altendorf
I recently filed my 2022 tax return using Magicbeans to do detailed lot tracking and capital gains/losses reporting for my crypto assets. Magicbeans is a set of tools (importers and report generation tools) built around Beancount. I wrote it because

long_short plugin and separating lots

2023-09-15 Thread Eric Altendorf
I've been using RedS's long_short plugin, but recently realized that in order to report in IRS 8949 style, I not only need to separate the gain amounts into long/short, but the lots (i.e., costs, acquisition date and cost). One option is to modify the existing plugin to split the transaction into

Re: Struggling to get padding working

2023-09-08 Thread Eric Altendorf
On Wed, Sep 6, 2023 at 8:33 AM Daniele Nicolodi wrote: > On 06/09/23 16:54, Eric Altendorf wrote: > > > > > > On Wed, Sep 6, 2023 at 04:00 Daniele Nicolodi > <mailto:dani...@grinta.net>> wrote: > > > > On 06/09/23 01:27, Sagar Shankar wrote: &g

Re: Struggling to get padding working

2023-09-06 Thread Eric Altendorf
On Wed, Sep 6, 2023 at 04:00 Daniele Nicolodi wrote: > On 06/09/23 01:27, Sagar Shankar wrote: > > Hi Dan, > > > > Thanks a lot, this works now! A simple line on this in the pad > > documentation would be great for future reference of others > > The behavior is due to the balance directive being

Re: Capital gains reporting tools

2023-09-03 Thread Eric Altendorf
On Sun, Sep 3, 2023 at 09:58 Martin Blais wrote: > On Mon, Jul 24, 2023 at 12:47 PM Eric Altendorf > wrote: > >> [changing subject line] >> >> On Sat, Jul 22, 2023 at 3:41 AM Daniele Nicolodi >> wrote: >> >>> On 19/07/23 22:03, Eric Altendorf

Re: Proposal for cost accounting in transfers

2023-08-30 Thread Eric Altendorf
On Tue, Aug 29, 2023 at 5:03 PM Martin Blais wrote: > > > On Sat, Aug 19, 2023, 21:14 Eric Altendorf > wrote: > >> So having thought about this issue some more, I think I need some advice >> on a core architectural question. >> >> We want to fill out cost

Re: Questions on cost tracking

2023-08-21 Thread Eric Altendorf
s on this other thread >> <https://groups.google.com/g/beancount/c/vDX1oA2mJXA/m/Y8yZqUqPAQAJ>) >> >> thanks, >> eric >> >> On Wed, Aug 9, 2023 at 3:36 PM Eric Altendorf >> wrote: >> > On Wed, Aug 9, 2023 at 1:38 PM Daniele Nicolodi wrote: >>&

Re: Proposal for cost accounting in transfers

2023-08-19 Thread Eric Altendorf
easier to implement this in booking. On Sat, Aug 19, 2023 at 5:27 PM Eric Altendorf wrote: > Well, I actually just realized that I can't assume there is only one > reduction posting, because the reduction may pull from multiple lots. I > need to investigate more. > > On Sat, Aug 1

Re: Proposal for cost accounting in transfers

2023-08-19 Thread Eric Altendorf
Well, I actually just realized that I can't assume there is only one reduction posting, because the reduction may pull from multiple lots. I need to investigate more. On Sat, Aug 19, 2023 at 2:05 PM Eric Altendorf wrote: > Hi all, > > A few recent (and older threads) have

Proposal for cost accounting in transfers

2023-08-19 Thread Eric Altendorf
Hi all, A few recent (and older threads) have discussed "transferring" cost information from account to account in a transfer transaction (reduction in one account with a balancing augmentation in another account). I've studied the code and current behavior and it seems quite feasible to improve

Re: partial support for commission syntax?

2023-08-18 Thread Eric Altendorf
too hard.. > > On Sat, Aug 19, 2023, 05:34 Eric Altendorf > wrote: > >> I was studying the beancount booking and interpolation code and tests, >> and came across a test case featuring this syntax, which I don't recall >> seeing in docs or discussions: >> >

partial support for commission syntax?

2023-08-18 Thread Eric Altendorf
I was studying the beancount booking and interpolation code and tests, and came across a test case featuring this syntax, which I don't recall seeing in docs or discussions: 2015-10-02 * Assets:Account 10 HOOL {100.00 # 9.95 USD} Assets:Other -1009.95 USD ...which looks like a

Re: Questions for rigorous cap gains tracking

2023-08-15 Thread Eric Altendorf
On Tue, Aug 8, 2023 at 9:46 PM Eric Altendorf wrote: > On Sun, Jul 30, 2023 at 8:39 AM Martin Blais wrote: > >> On Sat, Jul 15, 2023 at 11:19 AM Eric Altendorf >> wrote: >> >>> >>> This page discussed Beancount's incomplete handling of ac

Re: Questions on cost tracking

2023-08-15 Thread Eric Altendorf
if need be -- I am actually not even entirely sure what work, if any, is needed there (see my questions on this other thread <https://groups.google.com/g/beancount/c/vDX1oA2mJXA/m/Y8yZqUqPAQAJ>) thanks, eric On Wed, Aug 9, 2023 at 3:36 PM Eric Altendorf wrote: > On Wed, Aug 9, 2023 a

Re: Capital gains

2023-08-11 Thread Eric Altendorf
On Fri, Aug 11, 2023 at 3:53 PM Bakul Shah wrote: > > > On Aug 10, 2023, at 4:13 PM, Eric Altendorf > wrote: > > > > On Thu, Aug 10, 2023 at 3:12 PM Bakul Shah wrote: > >> [new user here] >> >> Consider this example snippet: >> >> 20

Re: Capital gains

2023-08-10 Thread Eric Altendorf
On Thu, Aug 10, 2023 at 3:12 PM Bakul Shah wrote: > [new user here] > > Consider this example snippet: > > 2023-06-18 * "Buy shares of XYZ" > Assets:US:ETrade:Cash -110.00 USD > Assets:US:ETrade:XYZ10 XYZ {10.00 USD} >

Re: Debugging display contexts

2023-08-10 Thread Eric Altendorf
On Thu, Aug 10, 2023 at 1:02 AM Daniele Nicolodi wrote: > On 10/08/23 06:43, Eric Altendorf wrote: > > beanquery> SELECT > > date > maxwidth(narration, 20), > > account, > > 10, > > round(cost(position), 4) as amount > > FROM > has_acco

Debugging display contexts

2023-08-09 Thread Eric Altendorf
I don't mind excessive decimal points in my bookkeeping but I'd like to be able to render reports and control the reported precision there. So I implemented __round__() on Amount, and added Amount to the signature of the bean-query round() function in query_env.py (happy to offer PRs after I am

Re: Questions on cost tracking

2023-08-09 Thread Eric Altendorf
On Wed, Aug 9, 2023 at 1:38 PM Daniele Nicolodi wrote: > > > > At first I thought acquisition dates were not shown because SUM() is > > aggregating the amounts of lots with different dates, but now I'm not > > sure. Is acquisition date tracked? Should it be? If it's not, is it > > likely user

Re: Price fetching, imputation, and PnL

2023-08-09 Thread Eric Altendorf
ancount platform at the same time. > > > > On Wed, Aug 9, 2023, 13:11 Eric Altendorf wrote: > >> Here's another example: >> >> 2020-06-02 * "Mining reward of 0.05 BTC" >> Assets:Ledger:BTC 0.05 BTC >> Income:Mining:USD >> >>

Re: Questions for rigorous cap gains tracking

2023-08-08 Thread Eric Altendorf
On Sun, Jul 30, 2023 at 8:39 AM Martin Blais wrote: > On Sat, Jul 15, 2023 at 11:19 AM Eric Altendorf > wrote: > >> >> This page discussed Beancount's incomplete handling of acquisition >> costs/commissions: >> https://beancount.github.io/docs/tradin

Re: Best path for some simple importers

2023-08-08 Thread Eric Altendorf
On Tue, Aug 1, 2023 at 12:19 PM Eric Altendorf wrote: > On Sun, Jul 30, 2023 at 9:12 AM Martin Blais wrote: > >> >> On Wed, Jul 19, 2023 at 9:10 AM Eric Altendorf >> wrote: >> >>> FWIW I went ahead and wrote my importers to the Beangulp API. I'm &

Re: Price fetching, imputation, and PnL

2023-08-08 Thread Eric Altendorf
ransactions to say "hey, price is needed here" ? On Tue, Aug 8, 2023 at 9:07 PM Eric Altendorf wrote: > Thanks, William. > > On Tue, Aug 8, 2023 at 4:04 PM William Bean wrote: > >> Hey Eric, >> >> Check out the repo for this that is located here: >>

Re: Price fetching, imputation, and PnL

2023-08-08 Thread Eric Altendorf
>> the docs. >> >> There are other uses for prices, e.g., establishing cost basis for a >> purchase, or establishing the value of the transfer of an asset at a >> particular point in time be that for income or expenses. Are there >> existing plugins that can loo

Re: Importer regression tests as pytest

2023-08-08 Thread Eric Altendorf
at 1:08 PM Eric Altendorf wrote: > I wanted to run my importer regression tests as part of my overall pytest > run. > > I found this for v2: > > https://github.com/beancount/beancount/blob/v2/beancount/ingest/regression_pytest.py > > but I couldn't find an analogue for

Re: Price fetching, imputation, and PnL

2023-08-07 Thread Eric Altendorf
transactions with them where they're missing? On Tue, Aug 1, 2023 at 5:54 PM Eric Altendorf wrote: > I'm having trouble understanding how automatic price fetching works, and I > think it's being additionally complicated by questions of price imputation > and maybe PnL accounts. Le

Re: How to transfer lots between accounts and how to query lot information?

2023-08-05 Thread Eric Altendorf
On Tue, Aug 1, 2023 at 12:11 PM Eric Altendorf wrote: > On Sun, Jul 30, 2023 at 8:52 AM Martin Blais wrote: > >> On Wed, Jul 19, 2023 at 6:44 AM Eric Altendorf >> wrote: >> >>> Just found this thread. I think I'm encountering similar issues; >>> d

Re: How to transfer lots between accounts and how to query lot information?

2023-08-05 Thread Eric Altendorf
[rereading this thread more carefully now] On Monday, January 18, 2021 at 6:57:52 PM UTC-8 bl...@furius.ca wrote: This looks all wrong, see other thread. To buy BTC at Coinbase, the money all comes from your Coinbase:Cash account. FWIW, Coinbase (and other exchanges) also offer (for better or

Importer regression tests as pytest

2023-08-04 Thread Eric Altendorf
I wanted to run my importer regression tests as part of my overall pytest run. I found this for v2: https://github.com/beancount/beancount/blob/v2/beancount/ingest/regression_pytest.py but I couldn't find an analogue for v3. Is it not in v3 yet? If so, would it be a good idea to move/port

Re: Tolerances and balances

2023-08-04 Thread Eric Altendorf
On Wed, Jul 19, 2023 at 11:54 AM Daniele Nicolodi wrote: > On 19/07/23 00:12, Eric Altendorf wrote: > > I seem to not understand how tolerances are used. I have this beancount: > > > >1 2018-01-01 open Assets:Alpha:ABC ABC > >2 2018-01-01 open Assets:Beta:ABC

Re: bean-query transaction grouping for render?

2023-08-03 Thread Eric Altendorf
On Thu, Aug 3, 2023 at 4:25 AM Daniele Nicolodi wrote: > On 03/08/23 08:27, Eric Altendorf wrote: > > When you do something like > >SELECT account, SUM(position) ... > > > > you get a nice table where the list of positions for each account is > > grouped (

Questions on cost tracking

2023-08-03 Thread Eric Altendorf
Couple questions on cost tracking: *1. When are acquisition dates tracked in Cost objects vs. not?* The query that I use for generating inventory reports at a particular time is this: SELECT account, SUM(position) as lots, UNITS(SUM(position)) AS total, COST(SUM(position)) AS total_cost FROM

bean-query transaction grouping for render?

2023-08-03 Thread Eric Altendorf
When you do something like SELECT account, SUM(position) ... you get a nice table where the list of positions for each account is grouped (with expand=true, it renders like a nested set of rows within the row) and each account name is only printed once. When you do something like SELECT id,

Re: Errors from run_query(), not from bean-query

2023-08-02 Thread Eric Altendorf
oked around for recipes but google was failing me. Up and running. > On Thu, Aug 3, 2023, 08:21 Eric Altendorf wrote: >> >>> I'm getting errors inside beancount/ops/summarize.py while using >>> beanquery's run_query() programmatically. This is on a beancount ledger >>>

Errors from run_query(), not from bean-query

2023-08-02 Thread Eric Altendorf
I'm getting errors inside beancount/ops/summarize.py while using beanquery's run_query() programmatically. This is on a beancount ledger that works fine when I run bean-query from the command line. I'm not sure if I'm failing to use the programmatic API correctly or if there's something else

Re: Beanquery "expand" when calling from command line

2023-08-02 Thread Eric Altendorf
On Wed, Aug 2, 2023 at 11:41 AM Daniele Nicolodi wrote: > On 02/08/23 19:34, Eric Altendorf wrote: > > It doesn't appear that bean-query allows you to issue a `set` followed > > by a query in a single line: > > > > beanquery> set expand true; select balance where

Beanquery "expand" when calling from command line

2023-08-02 Thread Eric Altendorf
It doesn't appear that bean-query allows you to issue a `set` followed by a query in a single line: beanquery> set expand true; select balance where year=2018; Invalid number of arguments. When interactive, of course this is not important. However, being able to do this would be useful for

Price fetching, imputation, and PnL

2023-08-01 Thread Eric Altendorf
I'm having trouble understanding how automatic price fetching works, and I think it's being additionally complicated by questions of price imputation and maybe PnL accounts. Let's start with the simplest case. Consider (commodity declarations omitted for brevity): 2020-01-01 * "Buy BTC (from

Generating PnL tax docs with beancount v3

2023-08-01 Thread Eric Altendorf
I'm working with v3, and it seems that bean-report, bean-web, and Fava are all v2 only. bean-query works with v3, so I think that means that instead of taking an existing high-level reporting framework and adapting it to my needs, I am probably going to be working bottom-up building BQL queries.

Re: Questions for rigorous cap gains tracking

2023-08-01 Thread Eric Altendorf
On Sun, Jul 30, 2023 at 8:39 AM Martin Blais wrote: > On Sat, Jul 15, 2023 at 11:19 AM Eric Altendorf > wrote: > >> ... >> > I'd like to run my own rules for booking (mostly HIFO, except able to >> select a slightly lower basis lot if it qualifies for long ter

Re: Legs for asset exchanges out of operating currency

2023-08-01 Thread Eric Altendorf
On Sun, Jul 30, 2023 at 9:09 AM Martin Blais wrote: > On Wed, Jul 19, 2023 at 8:50 AM Eric Altendorf > wrote: > >> I'm trying to understand how to construct legs for a transaction where no >> legs are in the operating currency. For example, one might exchange USDT >&

Re: Best path for some simple importers

2023-08-01 Thread Eric Altendorf
On Sun, Jul 30, 2023 at 9:12 AM Martin Blais wrote: > > On Wed, Jul 19, 2023 at 9:10 AM Eric Altendorf > wrote: > >> FWIW I went ahead and wrote my importers to the Beangulp API. I'm >> developing them here if anyone wants to follow along, contribute, or >>

Re: How to transfer lots between accounts and how to query lot information?

2023-08-01 Thread Eric Altendorf
On Sun, Jul 30, 2023 at 8:52 AM Martin Blais wrote: > On Wed, Jul 19, 2023 at 6:44 AM Eric Altendorf > wrote: > >> Just found this thread. I think I'm encountering similar issues; >> difficulties tracking assets that have been transferred. >> >> Have there be

Re: Cost basis tracking - non-American

2023-07-26 Thread Eric Altendorf
On Sun, Jul 23, 2023 at 23:08 Mark Scannell wrote: > Hello - > > On Sun, 23 Jul 2023 at 22:32, Eric Altendorf > wrote: > >> >> I'm not familiar with UK cap gains. What's missing to compute it? And >> what does it mean that you want UK cap gains, but you ar

Re: Why did my browser become like this? Do I need to update something?

2023-07-26 Thread Eric Altendorf
Can you be more specific about what you see and what you expected to see? On Sun, Jul 23, 2023 at 15:31 BITSI wrote: > Why did my browser become like this? Do I need to update something? > Thank you! > [image: 螢幕擷取畫面 2023-07-24 011730.jpg] > > -- > You received this message because you are

Capital gains reporting tools

2023-07-24 Thread Eric Altendorf
[changing subject line] On Sat, Jul 22, 2023 at 3:41 AM Daniele Nicolodi wrote: > On 19/07/23 22:03, Eric Altendorf wrote: > > In a related vein, are there other reporting tools I can use with v3 > > to generate even non-interactive reports? > > It really depen

Booking non-USD tx fees

2023-07-24 Thread Eric Altendorf
I'm trying to model the following transaction: an exchange of USDT for TOKEN (conceptually a "buy"), where the disposal of USDT can register PnL (wrt USD), but also where the exchange charges a fee in either USDT or TOKEN. The latter bit means the fee is a disposal of USDT or TOKEN (with

Re: Beangulp import/extract options

2023-07-23 Thread Eric Altendorf
On Sun, Jul 23, 2023 at 3:19 AM Daniele Nicolodi wrote: > On 23/07/23 03:58, Eric Altendorf wrote: > ... > > I'm not sure how one is supposed to run multiple importers at once, the > > doc kind of only describes running one. > > This is a design document, not user docu

Re: Cost basis tracking - non-American

2023-07-23 Thread Eric Altendorf
On Sun, Jul 23, 2023 at 1:59 AM Mark Scannell wrote: > Hello - > > I'm based in the UK and looking to use beancount and Fava. I'm not fussed > about bean count tracking taxable capital gains (that's separate), but it's > nice for it to present current market value over the average acquisition >

Re: Beangulp import/extract options

2023-07-22 Thread Eric Altendorf
On Sat, Jul 22, 2023 at 3:34 AM Daniele Nicolodi wrote: > On 21/07/23 23:06, Eric Altendorf wrote: > > I'm trying to figure out whether I can use the Beangulp import driver > > with hooks, or if I need to write my own driver to call my importers and > > do postprocessing.

Beangulp import/extract options

2023-07-21 Thread Eric Altendorf
I'm trying to figure out whether I can use the Beangulp import driver with hooks, or if I need to write my own driver to call my importers and do postprocessing. As you may recall, my workflow is atypical, as I have no curated Beancount ledger file; my source of truth are my input data files and

Order dependence of transfers

2023-07-20 Thread Eric Altendorf
I know in general the order of records in a beancount input file doesn't matter, but if I have an asset acquisition and a transfer of that asset later on the same day, things get confused if the transfer record appears first. E.g., this works: 2020-01-01 pad Assets:BrokerA:USD

Re: Is v2 > v3 still?

2023-07-19 Thread Eric Altendorf
On Wed, Jul 19, 2023 at 15:56 Andrew Ng wrote: > I guess I'm just a bit lost then. Not a programmer, despite the name, > ironically. > > I was able to compile v2 successfully, but am having trouble understanding > the install instructions for v3. > > > pip install –requirement

Re: Is v2 > v3 still?

2023-07-19 Thread Eric Altendorf
On Wed, Jul 19, 2023 at 11:32 AM Daniele Nicolodi wrote: > On 19/07/23 16:58, Eric Altendorf wrote: > > On Sun, Jul 16, 2023 at 10:07 PM Martin Blais > <mailto:bl...@furius.ca>> wrote: > > > > bean-query, bean-price have been moved to their own projec

Re: Lost cost?

2023-07-19 Thread Eric Altendorf
On Wed, Jul 19, 2023 at 11:45 AM Daniele Nicolodi wrote: > On 19/07/23 19:11, Eric Altendorf wrote: > > Do you know where in the code this was getting checked and dropped? > > It should be here > > https://github.com/beancount/beancount/blob/193645460fd7aafcb3d9e0359edab

Re: Lost cost?

2023-07-19 Thread Eric Altendorf
On Tue, Jul 18, 2023 at 12:31 PM Eric Altendorf wrote: > On Tue, Jul 18, 2023 at 9:57 AM Daniele Nicolodi > wrote: > >> On 18/07/23 04:47, Eric Altendorf wrote: >> > I've got my first importer running, mostly works, but the cost I'm >> > providing doesn't

Re: Is v2 > v3 still?

2023-07-19 Thread Eric Altendorf
angulp 0.1.dev0 depends on beancount>=2.3.5 fava 1.25 depends on beancount<3 and >=2.3.5 > On Mon, Jul 17, 2023, 10:26 Eric Altendorf > wrote: > >> Thanks. >> >> make & pip install worked fine. can run bean-check. Still doesn't seem >> to be

Re: Best path for some simple importers

2023-07-18 Thread Eric Altendorf
script that runs each importer and merges their output textually. I'll be investigating some of the deduping frameworks. On Mon, Jul 17, 2023 at 4:34 PM Martin Blais wrote: > On Tue, Jul 18, 2023 at 12:52 AM Eric Altendorf > wrote: > >> Thanks for the quick reply! >> >> O

Legs for asset exchanges out of operating currency

2023-07-18 Thread Eric Altendorf
I'm trying to understand how to construct legs for a transaction where no legs are in the operating currency. For example, one might exchange USDT (Tether) for BTC. USDT is sorta like USD but actually not, and its exchange rate does fluctuate. Such a transaction isn't technically just a

Re: How to transfer lots between accounts and how to query lot information?

2023-07-18 Thread Eric Altendorf
Just found this thread. I think I'm encountering similar issues; difficulties tracking assets that have been transferred. Have there been any developments on this front since? On Saturday, June 5, 2021 at 4:05:36 PM UTC-7 Red S wrote: > Glad it helped. I'll post the python file if I find it.

Tolerances and balances

2023-07-18 Thread Eric Altendorf
I seem to not understand how tolerances are used. I have this beancount: 1 2018-01-01 open Assets:Alpha:ABC ABC 2 2018-01-01 open Assets:Beta:ABC ABC 3 4 2018-01-02 * "synthesize a position with zero cost basis" 5 Assets:Alpha:ABC1.0 ABC {0.00 USD} 6 7 2018-01-03 balance

Re: Lost cost?

2023-07-18 Thread Eric Altendorf
On Tue, Jul 18, 2023 at 9:57 AM Daniele Nicolodi wrote: > On 18/07/23 04:47, Eric Altendorf wrote: > > I've got my first importer running, mostly works, but the cost I'm > > providing doesn't seem to be making it all the way through. A debug > > print shows this as the tran

Re: Workflow questions

2023-07-18 Thread Eric Altendorf
Thanks so much for the detailed reply. I'm slowly but surely wrapping my head around everything. On Tue, Jul 18, 2023 at 10:35 AM Daniele Nicolodi wrote: > [...] > There are two modalities in which you can operate, distinguished by what > you define to be the "source of truth": > > 1. you have

Lost cost?

2023-07-17 Thread Eric Altendorf
I've got my first importer running, mostly works, but the cost I'm providing doesn't seem to be making it all the way through. A debug print shows this as the transaction I'm returning: Transaction(meta={'filename': '/home/...csv', 'lineno': 1}, date=datetime.date(2018, 1, 1), flag='*',

Re: Workflow questions

2023-07-17 Thread Eric Altendorf
On Mon, Jul 17, 2023 at 5:58 PM Sath S wrote: > > There's a ton of documentation on the importers, but it doesn't say much > about how data actually gets from the extractor into beancount. The only > thing I can find is a sentence that mentions that bean-extract "produces > some Beancount input

Re: Deduplication & merging questions

2023-07-17 Thread Eric Altendorf
Thanks both, these look promising, I'll investigate. On Mon, Jul 17, 2023 at 6:01 PM Red S wrote: > > https://github.com/redstreet/beancount_reds_plugins/tree/main/beancount_reds_plugins/zerosum#readme > > On Monday, July 17, 2023 at 3:22:21 PM UTC-7 erical...@gmail.com wrote: > >> I see hooks

Re: Workflow questions

2023-07-17 Thread Eric Altendorf
On Mon, Jul 17, 2023 at 3:42 PM Filip Filmar wrote: > On Mon, Jul 17, 2023 at 3:34 PM Eric Altendorf > wrote: > >> I'm starting to think that maybe Beancount is a good match for the last >> bullet point, but I need to write my own build system for the other points, >>

Re: Workflow questions

2023-07-17 Thread Eric Altendorf
7, 2023 at 3:26 PM Filip Filmar wrote: > On Mon, Jul 17, 2023 at 3:18 PM Eric Altendorf > wrote: > >> Do my questions suggest I have the wrong mental model for using >> Beancount?  >> > > You may be assuming more automation than there is. > > IMHO the re

Deduplication & merging questions

2023-07-17 Thread Eric Altendorf
I see hooks for dup deduction on importers, but the doc comments don't make it clear how those functions are used. Poking around the code, it appears that these are only run to dedup items within a single import. Is there any functionality to automatically match up legs of a transaction that

Workflow questions

2023-07-17 Thread Eric Altendorf
There's a ton of documentation on the importers, but it doesn't say much about how data actually gets from the extractor into beancount. The only thing I can find is a sentence that mentions that bean-extract "produces some Beancount input text to be moved to your input file". Is the process of

Re: Is v2 > v3 still?

2023-07-17 Thread Eric Altendorf
Got it, thanks. On Sun, Jul 16, 2023 at 10:07 PM Martin Blais wrote: > bean-query, bean-price have been moved to their own projects in v3. > See other repos in the same org. > > Bean-web has been deleted; use Fava instead. > > On Mon, Jul 17, 2023, 10:26 Eric Altendorf &g

Best path for some simple importers

2023-07-16 Thread Eric Altendorf
I have a few CSV files with basic transactions (basically sent and received assets & amounts, plus commission cost). These are all I need to process. It would be pretty easy for me to just translate them line by line into Beancount format inputs, but I like to do things "the right way". Problem

Re: Is v2 > v3 still?

2023-07-16 Thread Eric Altendorf
Oh, grepping around in the source reveals a note about Fava replacing bean-web? (bean-web is still what the docs discuss) Sorry -- you've written such extensive and well-written documentation I've been taking it as truth :) On Sun, Jul 16, 2023 at 7:26 PM Eric Altendorf wrote: > Tha

Re: Is v2 > v3 still?

2023-07-16 Thread Eric Altendorf
n v2? On Sun, Jul 16, 2023 at 5:10 PM Martin Blais wrote: > > > On Mon, Jul 17, 2023, 06:00 Eric Altendorf > wrote: > >> On Sun, Jul 16, 2023 at 2:27 PM Martin Blais wrote: >> >>> Precisely reliable and reproducible packaging and instructions that work >

Re: Is v2 > v3 still?

2023-07-16 Thread Eric Altendorf
elps, > Thanks! :) eric > > > > > > On Mon, Jul 17, 2023, 02:37 Eric Altendorf > wrote: > >> Aha, looks like this is the page: >> https://beancount.github.io/docs/installing_beancount_v3.html >> >> I'll work from that. Just sharing the FYI t

Re: Is v2 > v3 still?

2023-07-16 Thread Eric Altendorf
Aha, looks like this is the page: https://beancount.github.io/docs/installing_beancount_v3.html I'll work from that. Just sharing the FYI that some of the install instructions / links seem to be misleading. On Sun, Jul 16, 2023 at 10:19 AM Eric Altendorf wrote: > On Fri, Jul 14, 2023 at 8

Re: Is v2 > v3 still?

2023-07-16 Thread Eric Altendorf
On Fri, Jul 14, 2023 at 8:35 PM Martin Blais wrote: > > > On Sat, Jul 15, 2023, 11:06 Eric Altendorf > wrote: > >> On Fri, Jul 14, 2023 at 4:45 PM Martin Blais wrote: >> >>> v3 > v2 >>> No less stable; less overall code, many parts moved

Questions for rigorous cap gains tracking

2023-07-14 Thread Eric Altendorf
I'm looking into Beancount for the specific purpose of rigorous capital gains tracking for crypto transactions. I just read the docs, and now have a few questions, hoping someone can help. Thanks in advance! :) I'd like to run my own rules for booking (mostly HIFO, except able to select a

  1   2   >