Re: beancount/ops/holdings.py missing from v3?

2024-07-29 Thread Martin Blais
placement available in v3 for holdings.py? > > On Mon, Jul 29, 2024 at 10:05 PM Martin Blais wrote: > >> I can't quite recall - it's been a *long* time - but I think I refactored >> this away. >> I'm not sure if you can install both. >> I'm sure you can do something wi

Re: Lazy Beancount: a guide and repository to bootstrap Beancount experience

2024-07-29 Thread Martin Blais
Thanks for sharing! Added to contrib doc On Mon, Jul 29, 2024 at 1:12 PM Vasily M wrote: > Hi all, > > First of all, thanks for the great software! > > I've been using Beancount for over a year now and over time moved most of > financial stuff I've been previously doing in various

Re: beancount/ops/holdings.py missing from v3?

2024-07-29 Thread Martin Blais
I can't quite recall - it's been a *long* time - but I think I refactored this away. I'm not sure if you can install both. I'm sure you can do something with virtualenv though. On Mon, Jul 29, 2024 at 10:04 PM Rahul Kuchhal wrote: > I noticed beancount/ops/holdings.py does not exist in v3

Re: Beancount txn parser/writer in Emacs Lisp

2024-07-25 Thread Martin Blais
If it exists, I'm not aware of it. I'm all for it. On Thu, Jul 25, 2024 at 5:06 PM TRS-80 wrote: > Hi friends, > > Over the past years, I have implemented some hacky bits and pieces of a > txn parser and a writer in Emacs Lisp, and I was thinking about pulling > them together into something

Re: v3 installation, testing, docs

2024-07-22 Thread Martin Blais
All errors above addressed. The .io site will be updated eventually. On Wed, Jun 26, 2024 at 11:58 PM Martin Blais wrote: > 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: &g

Re: v3 installation, testing, docs

2024-07-21 Thread Martin Blais
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 > where I can make changes and run the test suite. What's the right way to > do this? >

Re: Advice on alternative accounting system for trading (including daytrading)

2024-07-07 Thread Martin Blais
BTW, related to trading inputs, here's an odd idea I had: to support a table/CSV-like syntax in Beancount itself. A set of accounts would have to be configured for a block, and the columns would dictate which accounts the numbers in columns are booked for. This would provide a pretty compact yet

Re: How to record a stock split?

2024-06-26 Thread Martin Blais
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 > of cap gains. > > On Wed, Jun 26, 2024 at 8:57 PM Martin Blais

Re: v3 installation, testing, docs

2024-06-26 Thread Martin Blais
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: > https://beancount.github.io/docs/installing_beancount.html > > links to a

Re: How to record a stock split?

2024-06-26 Thread Martin Blais
my ledger? > > — > Brian Lalor (he/him) > bla...@bravo5.org > > On Jun 22, 2024, at 9:34 PM, Martin Blais wrote: > > 2024-06-02 * "NVDA 10:1 stock split" "" > Assets:Stocks:NVDA -2 NVDA {733.09 USD, 2024-02-14} > Assets:Stocks

Re: How to record a stock split?

2024-06-22 Thread Martin Blais
Your price annotation is incorrect (the price on that date woudl be different), don't include it, it'll insert the wrong price in the price database. On Sat, Jun 22, 2024 at 10:16 PM fin wrote: > Brian Lalor wrote: > > I know this has been discussed a few times, but the docs are still >

Re: How to record a stock split?

2024-06-22 Thread Martin Blais
2024-06-02 * "NVDA 10:1 stock split" "" > Assets:Stocks:NVDA > -2 NVDA {733.09 USD, 2024-02-14} > Assets:Stocks:NVDA > 20 NVDA {109.633 USD} > > > But that doesn’t balance. > > — > Brian Lalor (he/him) > bla...@bravo5.org > &

Re: How to record a stock split?

2024-06-22 Thread Martin Blais
You bought your NVDA at 733.09 not 1096.33, that's what you have to provide in the cost for the -2 leg. The docs are correct. On Sat, Jun 22, 2024 at 5:32 PM Brian Lalor wrote: > I know this has been discussed a few times, but the docs are still > incorrect and I’m unable to find a complete

Re: Announcement: v3 and git branches

2024-06-22 Thread Martin Blais
I just fixed the github actions/workflows to produce and upload valid wheels. It includes wheels from 3.8 to 3.12 for windows, macos, linux for 3.0.0. On Tue, Jun 18, 2024 at 7:48 AM Martin Blais wrote: > On Tue, Jun 18, 2024 at 3:43 AM Stefano Zacchiroli > wrote: >

Re: Installation problems on MacBook Air M2 (Sonoma 14.5)

2024-06-21 Thread Martin Blais
I can't The docs are all about v2. Not updated. On Fri, Jun 21, 2024, 07:27 Alejandro López wrote: > Can you point me to the updated docs? > > El vie, 21 jun 2024 a las 1:36, Martin Blais () escribió: > >> bean-report is gone. >> >> >> On Thu, Jun 20, 2024

Re: Installation problems on MacBook Air M2 (Sonoma 14.5)

2024-06-20 Thread Martin Blais
bean-report is gone. On Thu, Jun 20, 2024 at 8:34 PM Alejandro López wrote: > Hi, > > I installed Beancount 3.0.0 with homebrew and some commands aren't being > recognized. When I use 'bean-report --help', it says 'bean-report: command > not found'. Running 'bean-check --version' does work

Re: bean-extract is gone with v3 [Was: Announcement: v3 and git branches]

2024-06-18 Thread Martin Blais
On Tue, Jun 18, 2024 at 7:09 AM Martin Blais wrote: > On Tue, Jun 18, 2024, 04:13 Stefano Zacchiroli wrote: > >> On Tue, Jun 18, 2024 at 03:36:34PM +0800, Martin Michlmayr wrote: >> > * Stefano Zacchiroli [2024-06-18 09:27]: >> > > I welcome migration tips on

Re: Announcement: v3 and git branches

2024-06-18 Thread Martin Blais
On Tue, Jun 18, 2024 at 3:43 AM Stefano Zacchiroli wrote: > About this: > > On Sun, Jun 16, 2024 at 04:22:43PM -0400, Martin Blais wrote: > > I've reviewed missing PyPI releases and made sure we have these: > > https://pypi.org/project/beancount2ledger/ > > did you

Re: bean-extract is gone with v3 [Was: Announcement: v3 and git branches]

2024-06-18 Thread Martin Blais
On Tue, Jun 18, 2024, 04:13 Stefano Zacchiroli wrote: > On Tue, Jun 18, 2024 at 03:36:34PM +0800, Martin Michlmayr wrote: > > * Stefano Zacchiroli [2024-06-18 09:27]: > > > I welcome migration tips on what's the easiest migration path (to > > > beangulp, I guess?) > > > > Yes. > > Thanks,

Re: Is there a language-neutral intermediate representation for a beancount ledger?

2024-06-17 Thread Martin Blais
On Mon, Jun 17, 2024, 09:33 Daniele Nicolodi wrote: > On 10/06/24 23:58, Chary Chary wrote: > > > > > > On Monday, June 10, 2024 at 8:49:45 PM UTC+2 dan...@grinta.net wrote: > > > > > > AFAICT you haven't contributed to beancount or beanquery yet you are > > asking to introduce policies

Re: Announcement: v3 and git branches

2024-06-17 Thread Martin Blais
I'd forgotten the tag. There's one now. On Mon, Jun 17, 2024 at 7:33 AM Martin Blais wrote: > On Mon, Jun 17, 2024 at 6:00 AM Brian Lalor wrote: > >> This is great! Thank you! Is there a summary of what’s new/different in >> 3.0.0 from 2.3.6? (Also I don’t see a 3

Re: Announcement: v3 and git branches

2024-06-17 Thread Martin Blais
ed down. Use the subprojects instead. - has a number of really minor fixes added over time but no major new features If you were using the 'master' branch there's no change. You should not use v2 anymore. > -- > Brian Lalor (he/him) > bla...@bravo5.org > > On Jun 16, 2024, at 4

Announcement: v3 and git branches

2024-06-16 Thread Martin Blais
Based on our recent discussion around Beancount branches being confusing, I did the following to branches: - v2: remains the same (no change); but v2 is now even less subject to freeze exceptions than before, because v3 is now officially born and PyPI releases will be made for it. The default

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

2024-06-16 Thread Martin Blais
It looks like I had a quick go at this in 2020 and concluded I'd never more than an afternoon: https://github.com/beancount/beancount/tree/trade_quick_experiment On Fri, Jun 14, 2024 at 1:29 PM Martin Blais wrote: > Yeah, that's why it wasn't done. > I'll see if I can just insert the me

Re: Advice on alternative accounting system for trading (including daytrading)

2024-06-14 Thread Martin Blais
I've developed Johnny for that purpose (https://github.com/edgebips/johnny), in the context of retail trading (not pro). It's not really in a state that's easy for others to use TBH. In theory it could be, but if you used it you'd be 90% sure to his some corner case that's not supported, e.g. some

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

2024-06-14 Thread Martin Blais
I think the best way to implement this is by modifying the booking >> process to insert metadata IDs on its output, so that one could call a >> function to easily extract all the trades from the same set of directives >> after they've been booked and interpolated, by just matching these IDs

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

2024-06-14 Thread Martin Blais
, Jun 13, 2024, 21:56 Martin Blais wrote: > In order to generate this you need to produce this as a side-effect of the > booking process (which involves matching the incomplete posting spec to the > inventory contents). > I think I've wanted to make this part of the core - an impo

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

2024-06-13 Thread Martin Blais
In order to generate this you need to produce this as a side-effect of the booking process (which involves matching the incomplete posting spec to the inventory contents). I think I've wanted to make this part of the core - an important part I should say - but at the time I switched to building

Re: Is there a language-neutral intermediate representation for a beancount ledger?

2024-06-10 Thread Martin Blais
One of the problems with switching that makes me really skittish about even trying it is that there's no going back. You can't easily convert back to GDocs. On Mon, Jun 10, 2024 at 11:11 AM Chary Chary wrote: > > - re. documentation: baking it into reST/Sphinx is going to result in less >

Re: Is there a language-neutral intermediate representation for a beancount ledger?

2024-06-10 Thread Martin Blais
gt; I hope this can still be recovered, because one thing is to formally >>> describe new feature, explain the thinking behind it and how author >>> intended to use it. >>> Since beanquery by its nature is very flexible and very versatile, >>> having a good

Re: Is there a language-neutral intermediate representation for a beancount ledger?

2024-06-10 Thread Martin Blais
+1 SGTM let's try it My focus is the core beancount anyhow, spinning off parts was a way to keep things under a certain size and let people experiment. Let's see how this goes, On Mon, Jun 10, 2024 at 11:11 AM Chary Chary wrote: > > - re. documentation: baking it into reST/Sphinx is going to

Re: Is there a language-neutral intermediate representation for a beancount ledger?

2024-06-10 Thread Martin Blais
> On Monday, June 10, 2024 at 11:04:16 AM UTC+2 dan...@grinta.net wrote: > >> On 10/06/24 09:27, Stefano Zacchiroli wrote: >> > On Sun, Jun 09, 2024 at 07:45:22PM -0400, Martin Blais wrote: >> >> I'm hoping to restart v3 in Rust at some point and to maybe write a &

Re: Is there a language-neutral intermediate representation for a beancount ledger?

2024-06-09 Thread Martin Blais
Yes, the ledger.proto including the data.proto from ccore is supposed to be that. Indeed it doesn't currently represent comments but a while ago it was discussed to be able to do that, and to allow programmatic transformation on the parsed output and to reconstitute text, as well as

Re: Formulas with variables in transaction legs

2024-06-04 Thread Martin Blais
Not that I'm aware of On Tue, Jun 4, 2024 at 9:25 AM Tino Didriksen wrote: > Was a solution ever found/made for this? Plugin or otherwise? > > I would also very much like some way to back-reference numbers. I've got > transactions like: > > 2024-01-02 * "Bs betaling MODSTRØM DANMARK A/S" >

Re: Loving beangulp

2024-05-28 Thread Martin Blais
It would be indeed nice if I created a PyPI for it. I think when the projects got forked from the beancount repo I never did that. On Tue, May 28, 2024 at 11:19 PM Red S wrote: > Not releases, but just a single release would suffice. > > The first release implies the author/maintainer deemed

Re: Loving beangulp

2024-05-28 Thread Martin Blais
I mean it does the job, should we make releases just so people feel like it's changing? I can commit a diff every month on the readme file if it helps /shrug On Tue, May 28, 2024, 01:29 Red S wrote: > > > On Monday, May 27, 2024 at 7:32:52 PM UTC-7 just...@gmail.com wrote: > > On Wednesday,

Re: Loving beangulp

2024-05-20 Thread Martin Blais
+1 on all points On Mon, May 20, 2024, 17:04 Daniele Nicolodi wrote: > beangulp is a redesign of the old importers code in Beancount v2. The > main goal of the project has always been to define a API for importers > and to build a minimal framework around it that implements most of the >

Re: Introducing Beanpost: A PostgreSQL-Based Experiment for Beancount Users

2024-04-28 Thread Martin Blais
It's not pedantic, it's totally needed at some point It would be nice to be able to generate accurate statements from both sides of these transactions. On Sat, Apr 27, 2024 at 4:59 AM Brian Lalor wrote: > Yes, that’s the one! I might be a bit overly pedantic about setting the > effective date,

Re: Introducing Beanpost: A PostgreSQL-Based Experiment for Beancount Users

2024-04-24 Thread Martin Blais
s. It's been an amazing tool, and I'm grateful to this community and > especially to Martin Blais for maintaining such a fantastic project. > > I'm sharing a project I've been working on called Beanpost, which you can > find on GitHub at https://github.com/gerdemb/beanpost. This started as an

Re: Introducing Beanpost: A PostgreSQL-Based Experiment for Beancount Users

2024-04-22 Thread Martin Blais
years. It's been an amazing tool, and I'm grateful to this community and > especially to Martin Blais for maintaining such a fantastic project. > > I'm sharing a project I've been working on called Beanpost, which you can > find on GitHub at https://github.com/gerdemb/beanpost. This st

Re: account_unrealized_gains, account_current_conversions'

2024-04-19 Thread Martin Blais
On Mon, Apr 15, 2024 at 3:20 PM Chary Chary wrote: > Martin, > > thanks. > > >- Is my understanding correct, that you you are planning to expand >the current 5 accounts (Assets, Liabilities, Income, Expenses, Equity) also >with Earnings and Conversions? > > I'm planning nothing at

Re: account_unrealized_gains, account_current_conversions'

2024-04-14 Thread Martin Blais
These were defined to absorb amounts produced by summarizations described in https://docs.google.com/document/d/100tGcA4blh6KSXPRGCZpUlyxaRUwFHEvnz_k9DyZFn4/ On Sun, Apr 14, 2024 at 6:38 AM Chary Chary wrote: > Martin, > > sorry, did you manage to have a loot at my question? > > On Monday,

Re: Changes to support cost transfers

2024-04-13 Thread Martin Blais
- There's no dev list, this is it, not enough traffic to justify a separate list. - Your feature touches a very sensitive part of the booking process - one I've struggled to get sort of right in the past, has a lot of weird corner cases, it's been a bit of a whack-a-mole situation - I'd have to

Re: Cost basis adjustment for average cost booking

2024-04-04 Thread Martin Blais
On Thu, Apr 4, 2024 at 3:45 PM Chary Chary wrote: > On Thursday, April 4, 2024 at 3:34:23 AM UTC+2 bl...@furius.ca wrote: > > are there any serious consequences of just ignoring such tiny values > balance errors? > > No. > The worse that could happen is that a larger balance gets accidentally >

Re: Cost basis adjustment for average cost booking

2024-04-03 Thread Martin Blais
On Wed, Apr 3, 2024 at 4:04 AM Chary Chary wrote: > > > On Sunday, February 11, 2024 at 6:46:47 PM UTC+1 bl...@furius.ca wrote: > > > Practical solution: just add a little Equity:RoundingError posting to > absorb the fraction of a cent and move on. > > > Martin, > > are there any serious

Re: Balance report and other common reports in v3?

2024-03-26 Thread Martin Blais
FWIW, I feel like I've implemented less than a third of the ideas I've had for reporting, just ran out of time and energy. It's an area where there could be a lot of fun new outputs. About an API, I've started to sketch a simplified API in the master branch, so that all the symbols hang off of a

Re: Balance report and other common reports in v3?

2024-03-25 Thread Martin Blais
On Mon, Mar 25, 2024 at 6:58 PM fin wrote: > John Lee wrote: > > > I'm new to beancount (but not to PTA, though rusty). I should have read > the docs for v3 first, but I was surprised to see there's no bean-report in > v3. > > > > What do people use to get e.g. a balance report? Same question

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

2024-03-16 Thread Martin Blais
+1 to that. I don't do package management much. I just 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 >> saying

Re: Modify postings in transactions and update the input beancount file

2024-03-15 Thread Martin Blais
There's a far fetched idea for the next version to augment the parser such that it is possible to completely reverse the process and regenerate the input file with modifications, but it's just a fanciful idea at this point. On Fri, Mar 15, 2024 at 6:47 PM Saglara S wrote: > I want to add and

Re: thank you beancounters! :)

2024-03-03 Thread Martin Blais
Sounds great! Congrats. On Sun, Mar 3, 2024 at 5:34 PM fin wrote: > as of today i've finally gotten one of my longest > running accounts imported, balanced, working, it's > beautiful! > > only a few transactions missing from the era of > hand written passbooks. > > i'm tempted to ask

Re: Balance for each account for each month

2024-03-02 Thread Martin Blais
I think the query you issued should work. Can you be more specific about "it mixes together the balances"? Maybe isolate just a few transactions and run on that, to isolate what you believe is the problem and reply here. On Sat, Mar 2, 2024 at 9:58 AM Andrea Vidali wrote: > Hi everyone,

Re: Bazel build failing on fedora-toolbox (how to properly set up python env?)

2024-02-26 Thread Martin Blais
You can still use the same build process (Makefiles + C) in the master branch. The C++ code is not enabled by default. On Mon, Feb 26, 2024 at 5:25 PM Chary Chary wrote: > > > On Wednesday, January 31, 2024 at 8:11:39 PM UTC+1 dan...@grinta.net > wrote: > > > If you just want to use Beancount

Re: Purpose of a filename metadata in posting object

2024-02-25 Thread Martin Blais
I think it was just added by default. Also, the "filename" field really is a source identifier saying "where does this bit of data originate from?" and for postings created by plugins that could be the plugin name. It should probably be renamed to "source" in the new version. On Sun, Feb 25,

Re: Totals for a specific commodity

2024-02-25 Thread Martin Blais
(No need to apologize, there are no dumb questions here - but maybe just not much time for detailed answers.) Use beanquery: https://github.com/beancount/beanquery https://docs.google.com/document/d/1s0GOZMcrKKCLlP29MD7kHO4L88evrwWdIO0p4EwRBE0/ On Sun, Feb 25, 2024 at 12:18 PM CDT wrote: > I'm

Re: Totals for a specific commodity

2024-02-24 Thread Martin Blais
Just SELECT sum(position) WHERE currency = 'BTC'? On Sat, Feb 24, 2024 at 2:46 PM CDT wrote: > I have some commodities (lets just use BTC as an example) spread out over > many different accounts. > > Is there a command to get a grand total on a specific commodity (like BTC) > regardless of the

Re: How to transfer commodities between currencies?

2024-02-19 Thread Martin Blais
7.03 CAD Granted it could be better, but it's possible. Thankfully you probably don't have a ton of these... (You could automate the generation of these with a plugin if you do.) On Mon, Feb 19, 2024 at 9:08 AM Martin Blais wrote: > (But to the straightforward question is: yes, it can.) > &

Re: How to transfer commodities between currencies?

2024-02-19 Thread Martin Blais
(But to the straightforward question is: yes, it can.) On Mon, Feb 19, 2024 at 9:08 AM Martin Blais wrote: > It depends. > What happens to your unrealized gain? > Does this trigger a realization and stepping up of cost-basis? Or do you > carry the unrealized gain to CAD? > >

Re: How to transfer commodities between currencies?

2024-02-19 Thread Martin Blais
It depends. What happens to your unrealized gain? Does this trigger a realization and stepping up of cost-basis? Or do you carry the unrealized gain to CAD? On Sun, Feb 18, 2024 at 10:11 PM Matt McCormick wrote: > Some commodities trade on multiple stock exchanges and can be exchanged. > How

Re: T-bills through Treasury Direct - How to Record?

2024-02-19 Thread Martin Blais
I have a bunch of these now too, I haven't converted to Beancount yet, but I think it'll be straightforward. I think there is a choice to make about whether you want to - just account for the cash flows (which should be really easy, book as a new commodity with a price that begins at what you paid

Re: Setting up first Beancount file - should I separate LLC partnership and personal finances

2024-02-17 Thread Martin Blais
On Fri, Feb 16, 2024, 08:51 CDT wrote: > Hello, > > I'm setting up my first Beancount file and will start with 2024. > > Currently I have all of my ledgers in Gnucash but I will probably not > export the existing items (yet). > > My wife and I have an LLC partnership for a property we rent and

Re: install from github missing bean-report

2024-02-15 Thread Martin Blais
Use the v2 branch, this has been deleted in the master branch (deprecated, use beanquery) On Thu, Feb 15, 2024, 00:30 fin wrote: > If you install beancount from a local directory on your > computer after downloading it from the github current site > there is no bean-report command available.

Re: Copy-pasting multiline (multiple lines) query into bean-query

2024-02-14 Thread Martin Blais
I don't know. If it's supported in https://docs.python.org/3/library/cmd.html it should be possible to improve it. On Tue, Feb 13, 2024 at 5:55 AM Dan Andersson wrote: > Motivation: Give people (including Windows users) copy-pasteable commands > they can simply use as-is (regardless of

Re: Cost basis adjustment for average cost booking

2024-02-14 Thread Martin Blais
I agree it's totally possible to rewrite a plain-text accounting system on your own in a short amount of time and there are many such projects on github but going all the way to handling a bunch of the corner cases, dealing with user issues continuously for a while, and making it extensible via

Re: Cost basis adjustment for average cost booking

2024-02-13 Thread Martin Blais
On Mon, Feb 12, 2024 at 11:15 AM Chary Chary wrote: > On Sunday, February 11, 2024 at 6:46:47 PM UTC+1 bl...@furius.ca wrote: > > One day, when I retire, I'll spend months writing v3 and offer you all a > new and improved Beancount or maybe someone with more free time and > enthusiasm will beat

Re: Cost basis adjustment for average cost booking

2024-02-11 Thread Martin Blais
What it should be: precision has to be rewritten (the v3 proposal includes ideas for doing this) Practical solution: just add a little Equity:RoundingError posting to absorb the fraction of a cent and move on. One day, when I retire, I'll spend months writing v3 and offer you all a new and

Re: Branching transaction import logic (i.e. partially automating imports)

2024-02-10 Thread Martin Blais
Here's how I do it (from my import script): def process_entry(entry): ... do something... return entry def process_extracted_entries(extracted_entries_list, ledger_entries): """Filter the extracted entries to save on time.""" return [(filename, [process_entry(entry) for entry

Re: Copy-pasting multiline (multiple lines) query into bean-query

2024-02-10 Thread Martin Blais
This is a bash question. Look at how multiple lines are handled in bash (should be lots of info online). On Sat, Feb 10, 2024 at 9:24 AM Dan Andersson wrote: > Hi, > > After doing bean-query foo.beancount to enter the interactive session, can > I somehow copy-paste multiple lines in there? > >

Re: I created a way to do BeanCount bookkeeping using typescript.

2024-02-08 Thread Martin Blais
Maybe if Beancount gets rewritten in Rust we can compile it to Rust-WASM and run it in the browser, haha! On Thu, Feb 8, 2024 at 10:14 AM base hamster wrote: > The biggest benefit is that it makes beancount Turing-complete, so you can > use typescript to write recurring bills. > > > import {

Re: Bazel build failing on fedora-toolbox (how to properly set up python env?)

2024-02-03 Thread Martin Blais
On Sat, Feb 3, 2024 at 7:24 AM Daniele Nicolodi wrote: > On 31/01/24 22:23, Chary Chary wrote: > > Dan, > > > > I thought that the main idea of beancount v3 was migrating some > > functionality to C++ to make the thing be faster. > > > > If this is not being done in beancount v3, are there any

Re: Commodity 24 character limit

2024-01-03 Thread Martin Blais
Why would you encode that in the commodity name? You can add an account name for each broker, and als for subaccounts, or use met a-data. On Tue, Jan 2, 2024 at 2:40 AM Dan Andersson wrote: > Hi, > > Can someone please add a plugin/setting to customize this limit (get this > added to the v2

Re: Transitive commodity values / Pegging

2023-12-30 Thread Martin Blais
Beancount doesn't automatically compute implied prices based on transitive prices. All it does is impute the inverse price, and project the prices forward (the last valid price--in time--is the one that's used). You'll have to just update all of them. On Sat, Dec 30, 2023 at 9:50 AM Lover O'Bean

Re: Optionally make commodity directive mandatory?

2023-12-28 Thread Martin Blais
You're welcome! On Thu, Dec 28, 2023, 20:11 Lover O'Bean wrote: > Yes; while it doesn't address timing, it should be good enough for now: > > https://beancount.github.io/docs/api_reference/beancount.plugins.html#beancount.plugins.check_commodity.validate_commodity_directives > > (Also, while I

Re: Total match sale and balance error

2023-12-23 Thread Martin Blais
On Tue, Dec 19, 2023 at 12:30 PM Damien R. wrote: > Le mardi 19 décembre 2023 à 09:02:46 UTC-5, bl...@furius.ca a écrit : > > On Tue, Dec 19, 2023 at 8:54 AM Damien R. wrote: > > Le lundi 18 décembre 2023 à 22:03:43 UTC-5, bl...@furius.ca a écrit : > > On Mon, Dec 18, 2023 at 9:25 PM Damien R.

Re: Moving assets between accounts and preserve cost basis?

2023-12-21 Thread Martin Blais
I *think*[1] that if 60 HOOL is all you have in that account it should match the total number of units in account1, and it would automatically fill in the cost basis in account2. [1] It's been a while, adding a unit test specifically for this case in the matching code might make sense to validate

Re: Total match sale and balance error

2023-12-19 Thread Martin Blais
On Tue, Dec 19, 2023 at 8:54 AM Damien R. wrote: > Le lundi 18 décembre 2023 à 22:03:43 UTC-5, bl...@furius.ca a écrit : > > On Mon, Dec 18, 2023 at 9:25 PM Damien R. wrote: > > Thank you! It seems pretty obvious now... sorry for the dumb question! > > > There are no dumb questions. Nothing to

Re: Total match sale and balance error

2023-12-18 Thread Martin Blais
On Mon, Dec 18, 2023 at 9:25 PM Damien R. wrote: > Thank you! It seems pretty obvious now... sorry for the dumb question! > There are no dumb questions. Nothing to feel sorry about. > If they had decided to sell only 50% of the commodity, what would have > been the best way to handle it in

Re: Total match sale and balance error

2023-12-18 Thread Martin Blais
When you sell something you need to account for P/L. You're missing an account posting for that P/L, the amount of which can be left to be automatically calculated by Beancount, for that $124.46 On Mon, Dec 18, 2023 at 8:57 PM Damien R. wrote: > Hi, > > I have an investment in a mutual fund

Re: Calculating Portfolio Returns

2023-12-17 Thread Martin Blais
[image: image.png] On Sun, Dec 17, 2023 at 12:06 PM Chary Chary wrote: > Martin, > > I was reading through the *Beancount - Calculating Portfolio Returns > * > document > > Very thorough (as always)! > > May be

Re: Order of padding and plugins

2023-12-11 Thread Martin Blais
Thank you for reporting it Soham. On Mon, Dec 11, 2023, 06:01 Soham Shanbhag wrote: > I see that there is an open issue on github related to this too, see > https://github.com/beancount/beancount/issues/742. > > The present behaviour does not satisfy the definition of the pad directive > in

Re: Dealing with futures

2023-12-08 Thread Martin Blais
Sorry for the late reply, I've been busy. Yeah, maybe I shouldn't have called it "margin," it's inaccurate. In particular, this method doesn't actually track the margin usage (which seems unnecessary). Maybe it should be some Equity account. There's some other discussion about futures contracts

Re: How to account for expenses withdrawable from an HSA

2023-11-29 Thread Martin Blais
I think the second transaction does not reflect the actual cash transfers. I would do it either this way: 2023-11-29 * "Dr. Hu" "pain killers" receipt: "http://example.com/2023-11-29_Dr.Hu_meds.pdf; Assets:Cash -100.00 USD Expenses:Health100.00 USD

Re: Lot matching necessary?

2023-11-21 Thread Martin Blais
On Tue, Nov 21, 2023 at 11:36 AM Dan Andersson wrote: > Hi, > > My goal is to convert Interactive Brokers statements (their XML flex > statements) to Beancount. > > Normally I wouldn't have to think about lots and prices, because each > already tells me cash in/out (and realized FIFO pnl). >

Re: Beancount docs: tagstack does not work over include

2023-11-19 Thread Martin Blais
If you'd like to make a suggestion I can open up the relevant doc for comment & suggestion. Let me know which one, On Sun, Nov 19, 2023 at 3:46 AM Matthias Beyer wrote: > Hi, > > the docs on the tagstack do not explicitely say that the tagstack > functionality does only work per-file! > > So

Re: Announce: new Beancount parser in Rust

2023-11-18 Thread Martin Blais
one of it is rocket science, but you're really just redoing protos at that point. > cheers, > Simon > > On Sun, 19 Nov 2023, 7:16 am Martin Blais, wrote: > >> Have you guys seen this suite of tests? >> >> https://github.com/beancount/beancount/blob/master/beancount/c

Re: Announce: new Beancount parser in Rust

2023-11-18 Thread Martin Blais
Have you guys seen this suite of tests? https://github.com/beancount/beancount/blob/master/beancount/cparser/parser_test.cc Any parser that supports a suite like this I'd probably want to integrate and contemplate a Rust version of Beancount. There are two crucial things at the bottom of it all:

Re: Question about how to work with beancount for ETFs

2023-11-18 Thread Martin Blais
Check out the section on trading in the docs. You can choose a booking method, e.g. FIFO, or do it manually (if you use the "specific lot identification" method). One trick that works well when doing by is to run bean-doctor to get the context around a transaction, it gives you the contents of the

There’s a Reason a Killer Money-Saving App Still Doesn’t Exist - The Wall Street Journal.

2023-11-15 Thread Martin Blais
This is a pretty good article about Mint and budgeting apps: There’s a Reason a Killer Money-Saving App Still Doesn’t Exist https://www.wsj.com/articles/theres-a-reason-a-killer-money-saving-appstill-doesntexist-24558f8c I like this quote: "“Nobody wants to track an expense item for expense

Re: Announce: new Beancount parser in Rust

2023-11-15 Thread Martin Blais
The c++ parser in V3 is pretty much done. This is other people writing a parser in rust. It's worth noting that n beancount the parser alone isn't that useful. It's because beancount processes its data in two stages: parsing, which produces roughly a data structure that matches the input, and

Re: Announce: new Beancount parser in Rust

2023-11-12 Thread Martin Blais
Thank you for sharing. Added to contrib doc. On Sun, Nov 12, 2023 at 3:15 PM Simon Guest wrote: > Ahoy Beancounters! > > Of interest really only to developers, I created a new parser for > Beancount in Rust, called beancount-parser-lima >

Re: Getting commodity tracking working for individual securities

2023-10-28 Thread Martin Blais
The problem is not your currencies, it's the account names. Account names do not support underscores. Use dashes instead. (They probably should (mabe), but I'm not going to change the syntax in stable/v2). I'm not sure what the invalid currency error is, needs more detail On Sat, Oct 28, 2023 at

Re: Posting Resolution are being rounded

2023-10-26 Thread Martin Blais
Yes it's just being rendered that way. You can override the precision with an option declaration for that currency. Search mailing list for the specifics. On Thu, Oct 26, 2023, 04:34 Martin Michlmayr wrote: > * Vishesh Handa [2023-10-26 10:27]: > > 2022-03-10 * "Test" > > Expenses:B 42.0

Re: uabean: importers for Wise, Interactive Brokers, some Ukrainian banks & more

2023-09-24 Thread Martin Blais
Thanks for sharing Oleksii. I've added a link from the contribs doc. On Sun, Sep 24, 2023 at 12:45 PM Oleksii Sadovyi wrote: > Hi all, > > I've just published my set of beancount goodies: > https://github.com/OSadovy/uabean/ > > Focused on what's accessible for Ukrainians, but also generic

Re: Sharing expenses for dinner after adding up all expenses

2023-09-17 Thread Martin Blais
- your outgoing expenses for AR$1 and $ar18000 - your incoming transfer for AT$6000 from friend 1 - your incoming transfer for AT$6000 from friend 2 are all four separate transactions. Add a unique link to all three. Not sure there's more to it than that. Looks like you overpaid by AR$1

Re: Struggling to get padding working

2023-09-09 Thread Martin Blais
Docs are in Google Docs itself, just make an edit request and I'll grant On Fri, Sep 8, 2023 at 6:07 PM Eric Altendorf wrote: > 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 >

Re: Capital gains

2023-09-03 Thread Martin Blais
On Fri, Aug 11, 2023 at 8:20 PM Eric Altendorf wrote: > > > 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

Re: Capital gains reporting tools

2023-09-03 Thread Martin Blais
On Sun, Sep 3, 2023 at 11:07 AM Eric Altendorf wrote: > > > 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

Re: Capital gains reporting tools

2023-09-03 Thread Martin Blais
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 wrote: >> > In a related vein, are there other reporting tools I can use with v3 >> > to generate even

Re: Proposal for cost accounting in transfers

2023-08-29 Thread Martin Blais
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 information on an augmenting (receiving) leg of a > transfer, such that it matches the cost information on

Re: Additional cookbooks?

2023-08-27 Thread Martin Blais
What's there is all we got. On Wed, Aug 16, 2023 at 5:33 PM Daniel Schonfeld wrote: > Hello, > > I was wondering if the Taxes part of the cookbook has ever been completed > and also if there's a similar cookbook for how to run a typical small > business operation(s) as well as the owner

Re: partial support for commission syntax?

2023-08-18 Thread Martin Blais
This works and is not about commissions per se, what it is is a combined {per unit # per posting} syntax for cost. If you have 3 units, {100 # 3} is a per unit cost of 101 per share unit. Have you tried playing with bean-doctor? On Sat, Aug 19, 2023, 05:34 Eric Altendorf wrote: > I was

  1   2   3   4   5   6   7   8   9   10   >