Skip to main content

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:

  1. in the "Performance & Reports" section, select "Flex Queries", then create a new one by clicking on the "+" icon.

  2. we need both "Open Positions" and "Trades":

Alt text

  1. in "Open Positions" select at least "ISIN", "Quantity" and "Position Value". Feel free to add more. Alt text

  2. In "Trades" select at least "ISIN", "Date/Time", "Buy/Sell", "Quantity" and "TradePrice" Alt text

  3. You can now save the report type, all other options can be left in default state.

  4. next we can generate the report by clicking clicking on the "->" icon

  5. for period, select "Custom Date Range" and fill in the tax year you're interested in Alt text

  6. now the report is generated and you can start using stocktopus.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

stocktopus-0.1-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

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

Hashes for stocktopus-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5196652c246914593eee55359cfd3658584be20093152dedbdbed9428fc3e1c1
MD5 b8ed55cfbdaa930708ad15028db18997
BLAKE2b-256 bbd794cba1ad6c9a2cf237cb39d7adc25e199c00b7cb4d7bb1e293900c9124b6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page