Re: @@ syntax in trades

2019-05-02 Thread Alen Šiljak
It looked fairly simple initially. Now all the gritty details are popping up. I set FIFO method to try to simplify but that raises different issues. Stock transfers, stock splits, automatic sales on stock splits, etc. all need to be adjusted manually. It seems I will need to spend significant

@@ syntax in trades

2019-05-02 Thread Alen Šiljak
Could someone clarify the effects of @@ syntax in trades, compared to @ syntax? I have gone through a few documents related to trading and inventories, and none of them seem to contain the "@@" term. The GnuCash export script spits out all trades in "100 VHY @@ 320 AUD" format. For this

Asset Allocation

2019-05-02 Thread Alen Šiljak
Please note that I'm completely new to Beancount so I'd like some opinions and pointers. I would like to implement the Asset Allocation with Beancount, in order to migrate the functionality I currently have in https://github.com/MisterY/asset-allocation. What currently happens, briefly: -

Fwd: Us congress hearing of maan alsaan Money laundry قضية الكونغجرس لغسيل الأموال للمليادير معن الصانع

2019-05-02 Thread Hani Omar
YouTube videos of U.S. Congress money laundering hearing of Saudi Billionaire " Maan Al sanea" with *bank of America* and The owner of Saad Hospital and Schools in the Eastern Province in *Saudi Arabia* and the Chairman of the Board of Directors of Awal Bank in *Bahrain*

Re: Mass assignment of accounts

2019-05-02 Thread Martin Michlmayr
* Florian Lindner [2019-05-02 07:54]: > How can I change one of the accounts for all transactions matching > some criteria, e.g., payee? Does beancount or Fava have some > built-in support for that or do I need to resort to the text editor? You either adapt your importer to set the correct

Re: Create a balance from the API

2019-05-02 Thread Florian Lindner
>> >> (Decimal('12415.79'), 'EUR') >> >> Traceback (most recent call last): >> File "/usr/bin/bean-extract", line 4, in >> from beancount.ingest.extract import main; main() >> File "/usr/lib/python3.7/site-packages/beancount/ingest/extract.py", line 257, in main >> return

Price converter

2019-05-02 Thread Alen Šiljak
In case it could be useful to someone, I've added a price converter for ledger->beancount price format to PTA-converters (https://gitlab.com/alensiljak/pta-converters). I'll be using this until I adapt my price-database project to export directly to beancount format. Since Beancount supports

Re: Separate files

2019-05-02 Thread Alen Šiljak
Great, thanks! I missed that. Guess I should help out a bit more with that documentation converter so that we get a searchable documentation copy. On Thursday, 2 May 2019 12:11:52 UTC+2, Patrick Ruckstuhl wrote: > > There's an include directive > > > >1. include "subdir/file.beancount" > > >

Re: Separate files

2019-05-02 Thread Alen Šiljak
Thanks, Francois. You do raise a few interesting points: On Thursday, 2 May 2019 12:06:52 UTC+2, francois PEGORY wrote: > > It is easier for editing but as far as I understand, in memory there are > only one list of entry meaning that all the file referenced in the main > file are always

Re: Separate files

2019-05-02 Thread 'Patrick Ruckstuhl' via Beancount
There's an include directive 1. include "subdir/file.beancount" https://docs.google.com/document/d/1wAMVrKIA2qtRGmoVDSUBJGmYZSygUaR0uOMW1GV3YE0/edit#heading=h.86lelow4097r Regards, Patrick On 02.05.2019 11:57, Alen Šiljak wrote: You're right. I meant to ask, since looking at historical

Re: Separate files

2019-05-02 Thread Alen Šiljak
A benefit of this approach, for example, is to maintain a parallel set of books. I.e. initially export everything from GnuCash, separate into files, create adjustment files (for closing the accounts, previous years, etc.). Afterwards, the export script can be run with the date filter, exporting

Re: Separate files

2019-05-02 Thread francois PEGORY
Hello, I have currently split my beancount file in different files. I have one main file with different other that are referenced in the main file with an included. It is easier for editing but as far as I understand, in memory there are only one list of entry meaning that all the file referenced

Re: Create a balance from the API

2019-05-02 Thread 'Patrick Ruckstuhl' via Beancount
On 02.05.2019 10:26, Florian Lindner wrote: Hello, I would like to create a balance assertion -MM-DD balance Account  Amount program,atically: https://aumayr.github.io/beancount-docs-static/api_reference/beancount.core.html#beancount.core.data.Balance The parameter description in the

Create a balance from the API

2019-05-02 Thread Florian Lindner
Hello, I would like to create a balance assertion -MM-DD balance Account Amount program,atically: https://aumayr.github.io/beancount-docs-static/api_reference/beancount.core.html#beancount.core.data.Balance The parameter description in the API docs is only "Alias for field X". The

Re: Moving assets with cost basis

2019-05-02 Thread Zhuoyun Wei
In case anyone encounters the same problem: one can edit the cost basis of transferred positions: https://www.interactivebrokers.com/en/software/am/am/reports/positiontransferbasis.htm -- Zhuoyun Wei On Thu, May 2, 2019, at 01:39, Zhuoyun Wei wrote: > I just run a custom report. Indeed the