smart_importer training for payee prediction

2022-10-06 Thread Nasko Oskov
Hey folks,
I've managed to get my credit card importer to work the way I'd like it to 
and next step is to get smart_importer to help. I've got some training data 
with manually created entries. It works great to predict postings to which 
expense account I want to associate the transaction, however it works if 
and only if I don't modify the payee. If I change the imported data from 
"FOOBAR SOMETHING" to "Foobar Store" then the posting predictor does not 
work.
It also ties into my other question - how do I capture the original payee 
into the existing transaction entries so smart_importer can train on it and 
predict correctly the payee for the transaction?
Thanks in advance for all your help!
Nasko

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/4b1c8d97-9029-40ad-b481-35631f8749f8n%40googlegroups.com.


Best approach to combine multiple data sources

2022-10-03 Thread Nasko Oskov
Hey folks,
I'm trying to wrap my mind around the different parts of beancount in order 
to automate the import of my Amazon purchases. Using their Chase card 
allows me to have a mapping from a credit card transaction to Amazon order 
id. From Amazon, I can download a csv file with all items with their order 
ids.

If I use an importer, then I can get the ofx file to generate transactions, 
but it doesn't have any other information than the transaction payee and 
the amount. I decided to write a plugin that takes each transaction and 
maps the payee to order id, so I can record this as metadata.

The problem I'm hitting is that plugin transforms transactions when they 
are fed into tools, but does not update my beancount file. I assume this is 
because the beancount file is source of truth and we want it to be as 
immutable as possible. Am I correct in my understanding?
Importer seems to be the right place to combine all the bits of data 
together to generate the transaction correctly from the very get go, but 
that means I can't use either beancount-import or beancount-reds-importers 
as easily. 

Any suggestions on how to approach solving this?
Thanks in advance!
Nasko

P.S. Ideally, I'd integrate smart_import so I can train it on the data, 
since a bunch of transactions are repetitive.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/5d6ddfbb-5cd5-4994-b17f-fd98a2817c89n%40googlegroups.com.


Re: Beancount v3 progress

2022-09-29 Thread Nasko Oskov
I acknowledge this might be a randomizing question, but I have been
wondering for a few days now whether folks have considered using Rust for
the v3 rewrite. It is a newer language and not familiar to a lot of folks,
but allows us to write software at system level performance with lower
defect density on average.

On Fri, Sep 9, 2022 at 5:30 AM francois PEGORY 
wrote:

> Hello, now that beangulp is working with  beancount V2.
>
> Do you know if (and when) it will work with fava ?
>
> Regards
>
> Le ven. 9 sept. 2022 à 13:59, Stefano Zacchiroli  a
> écrit :
>
>> On Fri, Sep 09, 2022 at 10:00:26AM +0200, Daniele Nicolodi wrote:
>> > > Same here. I've been postponing improving my bean-ingest pipeline
>> > > because it's not worth investing in the "old" API anymore than I
>> already
>> > > did. Being able to jump to beangulp without having to wait for
>> Beancount
>> > > v3 would unblock that for me.
>> >
>> > beangulp is now compatible with Beancount v2.
>>
>> That was quick! Awesome, thank you.
>>
>> --
>> Stefano Zacchiroli . z...@upsilon.cc . upsilon.cc/zack  _. ^ ._
>> Full professor of Computer Science  o o   o \/|V|\/
>> Télécom Paris, Polytechnic Institute of Paris o o o   <\>
>> Co-founder & CTO Software Heritageo o o o   /\|^|/\
>> Former Debian Project Leader & OSI Board Director   '" V "'
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/beancount/20220909115903.qpxy5shhtjvyfsa5%40upsilon.cc
>> .
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beancount/CALUWbLeg7S83xVHFs_coHz4Hp31ra2PQh-qHdr%3D3ETs92OLEjQ%40mail.gmail.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CADsFrGKh0KpjSae9jdVuwiV%2BC_T3ocya%2BQLu1_TwSQFXkOF8XA%40mail.gmail.com.


Accounting for selling options contracts

2022-09-11 Thread Nasko Oskov
Hey folks,
Thanks a ton to everyone that has made the beancount ecosystem so awesome! 
I've recently started moving my finances over to it and so far I really 
like it.

The one scenario I'm hitting a snag with is how to track covered call 
options or naked puts I'm trading in one of my accounts. Both transactions 
are selling option contracts, therefore I need to start with a short 
position in time. I've tried searching for how to account for short 
positions and I still can't quite understand how to accomplish that. 

An example that we can use to discuss so it is more concrete - sold 1 put 
contract at $0.18 amounting to $17.31 after commissions and fees, which 
then expires worthless. Here 

2022-05-27 * "SELL PUT"
  Expenses:Investments:Fees:Fidelity:RollIRA0.0400 USD
  Expenses:Investments:Commisions:Fidelity:RollIRA  0.6500 USD
  Assets:US:Fidelity:RollIRA:AAPL220603P135 -1 AAPL220603P135 @ 
18.00 USD
  Assets:US:Fidelity:RollIRA:Cash17.31 USD

2022-06-03 * "EXPIRED PUT"
  Assets:US:Fidelity:RollIRA:AAPL220603P135  1 AAPL220603P135 @ 0.00 USD
  Assets:US:Fidelity:RollIRA:Cash0.00 USD

Any advice is appreciated.
Thanks in advance!
Nasko

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/3c21ae95-3c71-4425-86d5-65d9173b3522n%40googlegroups.com.