Thanks,Rajath--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/51c57efc-8915-4edd-981a-cb997c1f143cn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/b12e5c7d-f2d7-4b9c-8131-3cac25b17810n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/b12e5c7d-f2d7-4b9c-8131-3cac25b17810n%40googlegroups.com.
Hi,What I'm doing (I did the last yesterday) is like that:2020-12-28 * "TD" "Sell Put MO 15 JAN 2021 Strike 40 @0.40" #Option #Put #MO #SellIncome:Options:TD -40.00 USDExpenses:Comission:TD 0.67 USDAssets:Account:TD 39.33 USDAssets:Options 4000.00 USDLiabilities:Opctions
I do 6 or 7 per month. I use the Assets:Options and Liabilities:Options in order to have a complete view about the money I must reserve in case I'm assigned.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAM6BLCwOUD47fZz6o0WroYjvPHFhLcHYfSft6bdwiDW1sC%2B%2BSw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhMp0mVafPWRtdPYgFiQ1GmPLfpZgfaY_fdJJ_oZW74gZA%40mail.gmail.com.
1) Is there any downside of attaching so many currencies to a single account?
2) Is there a way to represent these transactions using the same currency over and over (based on the cost basis and date of options)
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/652e0445-c9a1-4b0b-9084-67672d3207cbn%40googlegroups.com.
I am also trying to figure out the best way to represent Sold options that open new positions.The suggested approach below works (kind of).2020-12-28 * "Sell March 1 PUT 200 on HOOL"Assets:Brokerage:Taxable:HOOL:Options -1 HOOL_PUT_200_2021_03_01 {1000 USD}Assets:Brokerage:Taxable:Cash 1000 USDSeems like I would need to add a new currency to HOOL:Options account each time I open a new position. Overtime I suspect this may result in hundreds (or even thousands) of currencies attached to a single account.
1) Is there any downside of attaching so many currencies to a single account?
2) Is there a way to represent these transactions using the same currency over and over (based on the cost basis and date of options)2020-12-28 * "STO March 1 PUT 200 on HOOL"Assets:Brokerage:Taxable:HOOL:Options -1 Options {1000 USD}Assets:Brokerage:Taxable:Cash 1000 USD2020-12-30 * "BTC March 1 PUT 200 on HOOL"Assets:Brokerage:Taxable:HOOL:Options 1 Options {1000 USD} @ 990 USDAssets:Brokerage:Taxable:Cash -990 USDIncome:PnL
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/652e0445-c9a1-4b0b-9084-67672d3207cbn%40googlegroups.com.
1) Is there any downside of attaching so many currencies to a single account?For beancount's core tools probably not. It may not work nicely with tooling like Fava's holdings report.2) Is there a way to represent these transactions using the same currency over and over (based on the cost basis and date of options)That gives me an idea. Cost has a date and label field. When omitted, date is set to the date of the posting which created the lot, and the label is None.However you could totally use these for your own purposes:2020-12-28 * "STO March 1 PUT 200 on HOOL"Assets:Brokerage:Taxable:HOOL:Options -1 HOOLPUT {1000 USD, 2021-03-01}Assets:Brokerage:Taxable:Cash 1000 USD2020-12-30 * "BTC March 1 PUT 200 on HOOL"Assets:Brokerage:Taxable:HOOL:Options 1 HOOLPUT {2021-03-01} @ 990 USD ; Notice how you can omit the price here since there's a unique match already. If you had STO that same put at more than one price you'd need to put the price+date on the BTC unless you are closing the whole position.Assets:Brokerage:Taxable:Cash -990 USDIncome:PnLVariations include setting the label as the type of option so you can use the same commodity for puts and calls. The approach above is the decent balance IMO. I'd still recommend making the option commodity specific so you can see your holdings rolled up independent of what account they are in.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CACGEkZu_9XM__-qFCiHoCDzhFP5ANzjJj%3DPze0yPyii0U%3DpKkA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhO_34Q_5k63ZfzP-8B%3DY%3DVg9CwYVQ4U8iL_ob_76jZabQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/b1aaf15c-b4ba-4642-925b-acf958da0e36n%40googlegroups.com.
The importers are separated into three parts:
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/80458186-ec8d-4797-895c-7f856752ae6an%40googlegroups.com.
I'm evaluating switching to the native beancount importer protocol vs beancount-import so this is a great example to draw on.
beancount-import to me has these pros:
- I like the web UI for interactive import and for its ability to propose joins between different sources generating two different halves of a transaction.
- Nice deduplication support
- Ability to see transactions that are uncleared - that is those you've imported the other half of but the 'authoritative' source hasn't seen it yet.
Downsides:- The ML prediction algorithm is overly broad in what it considers for training examples, leading to poor results. Hopefully smart_importer is better about this, I plan to evaluate it.- It's built around the idea that you'll use web scrapers / tools to download all the files into the correct directories. Scrapers are the most brittle part of my infra so I manually download many of my accounts instead. For that, the beancount importer tooling is a great fit.
Just a quick update on what I ended up doing.- I do not do any fancy options strategies, not even naked calls (only covered calls).- After options expire or the positions get closed, I only need to keep a record the cash outflow and inflow. The options details are only in narration.- So options accounts are needed only until options are held in accountI created a separate file for each account where I trade options to keep track of live options. This file has entries like this:2021-01-25 open Assets:Vanguard:Brokerage:Options:CUK210820P00010000 CUK210820P000100002021-02-02 open Assets:Vanguard:Brokerage:Options:CNK220121C00020000 CNK220121C000200002021-01-25 * "Sold -300.0 Options CUK210820P00010000"Assets:Vanguard:Brokerage:Options:CUK210820P00010000 -300.000 CUK210820P00010000 {0.8200 USD}Assets:Vanguard:Brokerage:VMSXX -3000.00 USDAssets:Vanguard:Brokerage:VMSXX:Reserved 3000.00 USDAssets:Vanguard:Brokerage:VMSXX 245.99 USDExpenses:US:BrokerageFees 0.01 USDIncome:Vanguard:Brokerage:PnL2021-02-02 * "Bought 200.0 Options CNK220121C00020000"Assets:Vanguard:Brokerage:Options:CNK220121C00020000 200.000 CNK220121C00020000 {5.5000 USD}Assets:Vanguard:Brokerage:VMSXX -1100.00 USDIncome:Vanguard:Brokerage:PnL
When the positions get closed the entries change into this (the first option expired, the second one got sold) and move to the main file:2021-01-25 * "Sold -300.0 Options CUK210820P00010000"Assets:Vanguard:Brokerage:VMSXX 245.99 USDExpenses:US:BrokerageFees 0.01 USDIncome:Vanguard:Brokerage:PnL2021-02-02 * "Bought 200.0 Options CNK220121C00020000"Assets:Vanguard:Brokerage:VMSXX -1100.00 USDIncome:Vanguard:Brokerage:PnL2021-02-10 * "Sold 200.0 Options CNK220121C00020000"Assets:Vanguard:Brokerage:VMSXX 500.00 USDIncome:Vanguard:Brokerage:PnLAutomatic importers spit out the transactions broken down into two parts - open option trades that go into the secondary file, closed option trades that go into the main file.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/aaf4def9-e5c7-42a8-aff2-2c3b6eecf73en%40googlegroups.com.