Skip to content

Latest commit

 

History

History
102 lines (89 loc) · 8.16 KB

supported_countries.md

File metadata and controls

102 lines (89 loc) · 8.16 KB

Supported Countries and Accounting Methods

Table of Contents

Introduction

RP2 supports most countries each of which has different accounting methods and report generators, as explained in the sections below. Some countries have direct support (by means of a country-specific RP2 plugin), but other countries can still benefit from RP2 via the generic country plugin (see below).

Accounting Methods

RP2 supports the following accounting methods (although not all countries support all accounting methods):

  • FIFO: lots acquired first are disposed of first;
  • LIFO: lots acquired last are disposed of first (opposite of FIFO);
  • HIFO: highest priced lots are disposed of first;
  • LOFO: lowest priced lots are disposed of first (opposite of HIFO).

Countries

Generic

This is a placeholder country that is meant to be used by people of countries that are yet unsupported by RP2. It produces a country-agnostic, detailed report and supports all RP2 accounting methods (which can be selected with the -m option). It requires the definition of two environment variables:

  • CURRENCY_CODE: ISO 4217 string representing the currency used;
  • LONG_TERM_CAPITAL_GAINS: period in days after which sold assets trigger long-term capital gains instead of short-term ones (for the US this value is 365). For countries that don't have short/long-term capital gains a very large number can be used (e.g. 1000000000). To set environment variables for the generic RP2 executable on Unix-like systems:
CURRENCY_CODE=eur LONG_TERM_CAPITAL_GAINS=1000000000 rp2_generic...

To set environment variables for the generic RP2 executable on Windows systems:

Set CURRENCY_CODE=eur LONG_TERM_CAPITAL_GAINS=1000000000 rp2_generic...

RP2 Generic supports the following features:

  • Generic RP2 executable: rp2_generic.
  • Accounting methods (note that these methods use universal application, not per-wallet application):
  • Output generators:
    • rp2_full_report: comprehensive report (valid for any country), with complete transaction history, lot relationships/fractions and computation details;
    • open_positions: report on assets with non-zero crypto balance (valid for any country): unrealized gains / losses, portfolio weighting, and more.

Ireland

RP2 support for Ireland includes the following features:

  • Ireland-specific RP2 executable: rp2_ie.
  • Accounting methods (note that in Ireland specific rules apply to assets bought and sold within a 4 week window: this is NOT yet supported by RP2):
  • Output generators:
    • rp2_full_report: comprehensive report (valid for any country), with complete transaction history, lot relationships/fractions and computation details;
    • tax_report_ie: tax report meant to be read by tax preparers;
    • open_positions: report on assets with non-zero crypto balance (valid for any country): unrealized gains / losses, portfolio weighting, and more.

Japan

RP2 support for Japan includes the following features:

  • Japan-specific RP2 executable: rp2_jp.
  • Accounting methods:
  • Output generators:
    • rp2_full_report: comprehensive report (valid for any country), with complete transaction history, lot relationships/fractions and computation details;
    • tax_report_jp: Japan-specific tax report meant to be read by tax preparers;
    • open_positions: report on assets with non-zero crypto balance (valid for any country): unrealized gains / losses, portfolio weighting, and more.

Spain

RP2 support for Spain includes the following features:

  • Spain-specific RP2 executable: rp2_es.
  • Accounting methods:
  • Output generators:
    • rp2_full_report: comprehensive report (valid for any country), with complete transaction history, lot relationships/fractions and computation details;
    • open_positions: report on assets with non-zero crypto balance (valid for any country): unrealized gains / losses, portfolio weighting, and more.

USA

RP2 support for the US includes the following features:

  • Accounting methods (note that these methods use universal application, not per-wallet application):
  • Output generators:
    • rp2_full_report: comprehensive report (valid for any country), with complete transaction history, lot relationships/fractions and computation details;
    • tax_report_us: tax report meant to be read by tax preparers (in the format of form 8949);
    • open_positions: report on assets with non-zero crypto balance (valid for any country): unrealized gains / losses, portfolio weighting, and more.
  • US-specific RP2 executable: rp2_us.