automatically fill-in tax forms
Project description
stocktopus
stocktopus is a cli utility that automatically fills in the portfolio section of the Zurich tax form for you. It can consume data from various brokers and turns a 2h+ task into minutes.
Installation
stocktopus can be simply installed via pip
python -m pip install stocktopus
Usage
We assume you already created a Flex Query report in Interactive Brokers following (this guide)[#interactive-brokers-preparation]. First we want to convert the report into a common format:
stocktopus ib --input=tax-report.xml --output=taxes.yml
next its time to actually start stocktopus and let it fill-in the form for you in lightning speed with its 8 arms.
stocktopus process --input=taxes.yml
now firefox browser will open and start to populate your tax form. In some situations it might halt and give you the option to intervene in the process, after you finished simple press enter on the console and stocktopus will pick up from there.
Interactive Brokers Preparation
In interactive brokers we leverage flex queries to generate a xml with all tax relevant information. this requires some initial setup:
-
in the "Performance & Reports" section, select "Flex Queries", then create a new one by clicking on the "+" icon.
-
we need both "Open Positions" and "Trades":
-
in "Open Positions" select at least "ISIN", "Quantity" and "Position Value". Feel free to add more.
-
In "Trades" select at least "ISIN", "Date/Time", "Buy/Sell", "Quantity" and "TradePrice"
-
You can now save the report type, all other options can be left in default state.
-
next we can generate the report by clicking clicking on the "->" icon
-
for period, select "Custom Date Range" and fill in the tax year you're interested in
-
now the report is generated and you can start using stocktopus.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file stocktopus-0.1-py3-none-any.whl
.
File metadata
- Download URL: stocktopus-0.1-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5196652c246914593eee55359cfd3658584be20093152dedbdbed9428fc3e1c1 |
|
MD5 | b8ed55cfbdaa930708ad15028db18997 |
|
BLAKE2b-256 | bbd794cba1ad6c9a2cf237cb39d7adc25e199c00b7cb4d7bb1e293900c9124b6 |