<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: eprbell</title>
    <description>The latest articles on DEV Community by eprbell (@eprbell).</description>
    <link>https://dev.to/eprbell</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F841520%2F7514bc2d-6478-44a3-ba7d-df686163912c.jpeg</url>
      <title>DEV Community: eprbell</title>
      <link>https://dev.to/eprbell</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/eprbell"/>
    <language>en</language>
    <item>
      <title>Update on RP2 (10/22): Open-source Crypto Tax Suite</title>
      <dc:creator>eprbell</dc:creator>
      <pubDate>Wed, 05 Oct 2022 17:09:33 +0000</pubDate>
      <link>https://dev.to/eprbell/dev-update-on-rp2-and-dali-1022-open-source-crypto-tax-suite-2nek</link>
      <guid>https://dev.to/eprbell/dev-update-on-rp2-and-dali-1022-open-source-crypto-tax-suite-2nek</guid>
      <description>&lt;p&gt;RP2 and DaLI are the components of a powerful, privacy-focused, open-source, free, non-commercial crypto tax suite (available on Github):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;RP2 is the tax calculator: &lt;a href="https://github.com/eprbell/rp2"&gt;https://github.com/eprbell/rp2&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;DaLI is the data loader: &lt;a href="https://github.com/eprbell/dali-rp2"&gt;https://github.com/eprbell/dali-rp2&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For a general introduction to RP2 and DaLI &lt;a href="https://dev.to/eprbell/rp2-open-source-crypto-tax-software-f20"&gt;read this article&lt;/a&gt;. The rest of this article describes what has changed since last tax season.&lt;/p&gt;

&lt;p&gt;Since last April RP2 and DaLI underwent a lot of development and gained significant traction in terms of Github stars, PRs, issues and discussions. Here are some of the main updates.&lt;/p&gt;

&lt;p&gt;RP2:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;added HIFO support (FIFO and LIFO were already supported)&lt;/li&gt;
&lt;li&gt;new open positions report, showing unrealized gains / losses and more&lt;/li&gt;
&lt;li&gt;improved accounting method plugin infrastructure: it's now very easy to add new methods&lt;/li&gt;
&lt;li&gt;reworked documentation&lt;/li&gt;
&lt;li&gt;many more fixes and improvements: see &lt;a href="https://github.com/eprbell/rp2/blob/main/CHANGELOG.md"&gt;CHANGELOG&lt;/a&gt; for full details&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;DaLI:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;added several new data loader plugins&lt;/li&gt;
&lt;li&gt;new pair conversion infrastructure with price routing&lt;/li&gt;
&lt;li&gt;added top-level multithreading, which improves performance when reading data from multiple exchanges/wallets&lt;/li&gt;
&lt;li&gt;reworked documentation&lt;/li&gt;
&lt;li&gt;many more fixes and improvements: see &lt;a href="https://github.com/eprbell/dali-rp2/blob/main/CHANGELOG.md"&gt;CHANGELOG&lt;/a&gt; for full details&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;RP2 and DaLI are a community-driven effort: they feature a powerful programmable plugin architecture that can be used to expand their functionality via Github PRs.&lt;/p&gt;

&lt;p&gt;Other notable features:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;no transaction limits, no premium versions, no payment requests, no personal data sent to a server (at risk of being hacked), no account creation, no unauditable source code&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/eprbell/rp2/blob/main/docs/output_files.md#transparent-computation-rp2-full-report-output"&gt;transparent computation&lt;/a&gt;: RP2 generates full computation details for every lot fraction, so that it's possible to verify step-by-step how RP2 reaches the final result.&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>RP2, the Privacy-focused, Free, Open-source US Crypto Tax Calculator, Is Growing Fast</title>
      <dc:creator>eprbell</dc:creator>
      <pubDate>Tue, 05 Apr 2022 05:40:54 +0000</pubDate>
      <link>https://dev.to/eprbell/rp2-the-privacy-focused-free-open-source-us-crypto-tax-calculator-is-growing-fast-1a3g</link>
      <guid>https://dev.to/eprbell/rp2-the-privacy-focused-free-open-source-us-crypto-tax-calculator-is-growing-fast-1a3g</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/eprbell/rp2"&gt;RP2&lt;/a&gt; and its sister data loader project &lt;a href="https://github.com/eprbell/dali-rp2"&gt;DaLI&lt;/a&gt; are receiving more and more user engagement on Github, in terms of stars, issues and PRs. Here's a graph showing RP2 Github stars over time (courtesy of &lt;a href="https://star-history.com/#eprbell/rp2&amp;amp;Date"&gt;star-history.com&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--jlfAtJfY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ws4qeiyjc4r7z339ktu8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--jlfAtJfY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ws4qeiyjc4r7z339ktu8.png" alt="RP2 Github stars over time" width="800" height="548"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Devs are needed! If you'd like to help out these exciting, fast-expanding projects, open an issue/PR on Github or contact me on Twitter (&lt;a class="mentioned-user" href="https://dev.to/eprbell"&gt;@eprbell&lt;/a&gt;).&lt;/p&gt;

</description>
      <category>crypto</category>
      <category>tax</category>
      <category>bitcoin</category>
      <category>opensource</category>
    </item>
    <item>
      <title>RP2: Open-source, Privacy-focused Crypto Tax Software</title>
      <dc:creator>eprbell</dc:creator>
      <pubDate>Sun, 03 Apr 2022 23:14:00 +0000</pubDate>
      <link>https://dev.to/eprbell/rp2-open-source-crypto-tax-software-f20</link>
      <guid>https://dev.to/eprbell/rp2-open-source-crypto-tax-software-f20</guid>
      <description>&lt;h2&gt;
  
  
  Table of Contents
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;How RP2 Operates&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Call for Coders&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/eprbell/rp2"&gt;RP2&lt;/a&gt; is a privacy-focused, free, non-commercial, open-source, community-driven cryptocurrency tax calculator. Preparing crypto taxes can be a daunting and error-prone task, especially if multiple transactions, coins, exchanges and wallets are involved. This task could be delegated to a crypto tax preparation service, but many crypto users value their privacy and prefer not to send their transaction information to third parties unnecessarily. Additionally, many of these services cost money. RP2 solves all of these problems:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;it manages the complexity related to coin flows and tax calculation and it generates &lt;a href="https://github.com/eprbell/rp2/tree/main/docs/output_files.md#advisor-friendly-report-tax-report-us-output"&gt;reports that accountants can understand&lt;/a&gt; (in the format of form 8949, for the US case), even if they are not cryptocurrency experts;&lt;/li&gt;
&lt;li&gt;it prioritizes user privacy by storing crypto transactions and tax results on the user's computer and not sending them anywhere else;&lt;/li&gt;
&lt;li&gt;it's 100% free, open-source and non-commercial.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This means that with RP2 there are no transaction limits, no premium versions, no payment requests, no personal data sent to a server (at risk of being hacked), no account creation, no unauditable source code.&lt;/p&gt;

&lt;p&gt;Another unique advantage of RP2 is &lt;a href="https://github.com/eprbell/rp2/tree/main/docs/output_files.md#transparent-computation-rp2-full-report-output"&gt;transparent computation&lt;/a&gt;: it generates full computation details for every lot fraction, so that it's possible to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;verify step-by-step how RP2 reaches the final result;&lt;/li&gt;
&lt;li&gt;track down every lot fraction and its accounting details, in case of an audit.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;RP2 supports the &lt;a href="https://www.investopedia.com/terms/f/fifo.asp"&gt;FIFO&lt;/a&gt;, &lt;a href="https://www.investopedia.com/terms/l/lifo.asp"&gt;LIFO&lt;/a&gt; and &lt;a href="https://www.investopedia.com/terms/h/hifo.asp"&gt;HIFO&lt;/a&gt; accounting methods, to help minimize the amount due.&lt;/p&gt;

&lt;p&gt;RP2 reads a configuration file and an input spreadsheet containing crypto transactions. These &lt;a href="https://github.com/eprbell/rp2/blob/main/docs/input_files.md"&gt;input files&lt;/a&gt; can be generated either manually or automatically using &lt;a href="https://github.com/eprbell/dali-rp2"&gt;DaLI&lt;/a&gt;, a RP2 data loader and input generator (which is also privacy-focused, free, non-commercial and open-source). After parsing the input RP2 uses high-precision math to calculate long/short term capital gains, cost bases, balances, average price, in/out lot relationships/fractions, and finally it generates &lt;a href="https://github.com/eprbell/rp2/blob/main/docs/output_files.md"&gt;output files&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;RP2 has a programmable plugin architecture for &lt;a href="https://github.com/eprbell/rp2/tree/main/README.dev.md#adding-a-new-report-generator"&gt;output generators&lt;/a&gt;, &lt;a href="https://github.com/eprbell/rp2/tree/main/README.dev.md#adding-a-new-accounting-method"&gt;accounting methods&lt;/a&gt; and &lt;a href="https://github.com/eprbell/rp2/tree/main/README.dev.md#adding-support-for-a-new-country"&gt;countries&lt;/a&gt;. The builtin output generator plugins are in part generic and in part US-specific, but RP2's architecture makes it possible to contribute additional generators for different countries or for different US-based cases. The builtin output generator plugins are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;tax_report_us: generates a US-specific tax report meant to be read by tax preparers (in the format of form 8949);&lt;/li&gt;
&lt;li&gt;rp2_full_report: generates a comprehensive report (valid for any country), with complete transaction history, lot relationships/fractions and computation details;&lt;/li&gt;
&lt;li&gt;open_positions: geterates a report (valid for any country) on assets with non-zero crypto balance: unrealized gains / losses, portfolio weighting, and more.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Similarly DaLI has its own programmable plugin architecture for &lt;a href="https://github.com/eprbell/dali-rp2/tree/main/README.dev.md#dali-internals"&gt;data loaders&lt;/a&gt; (both CSV and REST-based). Plugins for both RP2 and DaLI are being built and sumbitted by the community via PRs.&lt;/p&gt;

&lt;h2&gt;
  
  
  How RP2 Operates
&lt;/h2&gt;

&lt;p&gt;RP2 has been designed to have expressive primitives that can be used as building blocks for most tax scenarios: complex tax events can be described with patterns, built on top of these primitives (see the &lt;a href="https://github.com/eprbell/rp2/tree/main/docs/user_faq.md#tax-scenarios"&gt;FAQ list&lt;/a&gt; for examples).&lt;/p&gt;

&lt;p&gt;RP2 treats virtual currency as property for tax purposes, as per &lt;a href="https://www.irs.gov/newsroom/irs-reminds-taxpayers-to-report-virtual-currency-transactions"&gt;IRS Virtual Currency Guidance&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;RP2 supports the FIFO, LIFO and HIFO accounting methods: however, in and out lots typically don't have matching amounts, so RP2 fractions them, maps in/out lot fractions and computes the resulting cost basis and capital gains for each lot fraction.&lt;/p&gt;

&lt;p&gt;RP2 groups lot fractions into the following taxable event categories, each of which has a &lt;a href="https://github.com/eprbell/rp2/tree/main/docs/user_faq.md#which-crypto-tax-forms-to-file"&gt;specific tax treatment&lt;/a&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/eprbell/rp2/tree/main/docs/user_faq.md#how-to-handle-airdrops"&gt;AIRDROP&lt;/a&gt;: gains from airdrops;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/eprbell/rp2/blob/main/docs/user_faq.md#how-to-handle-donations"&gt;DONATE&lt;/a&gt;: donations to charitable organizations;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/eprbell/rp2/tree/main/docs/user_faq.md#hhow-to-handle-fee-only-defi-transactions"&gt;FEE&lt;/a&gt;: fee-only transaction, used in some DeFi scenarios (e.g. gas fee for running certain smart contracts);&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/eprbell/rp2/blob/main/docs/user_faq.md#how-to-handle-gifts"&gt;GIFT&lt;/a&gt;: gifts to parties who are not charitable organizations (not tax-deductible).&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/eprbell/rp2/tree/main/docs/user_faq.md#how-to-handle-hard-forks"&gt;HARDFORK&lt;/a&gt;: gains from hard forks;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/eprbell/rp2/blob/main/docs/user_faq.md#how-to-handle-miscellaneous-crypto-income"&gt;INCOME&lt;/a&gt;: gains from miscellaneous income (e.g. Coinbase Earn);&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/eprbell/rp2/blob/main/docs/user_faq.md#how-to-handle-crypto-interest"&gt;INTEREST&lt;/a&gt;: gains from interest;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/eprbell/rp2/tree/main/docs/user_faq.md#how-to-handle-income-from-mining"&gt;MINING&lt;/a&gt;: gains from mining;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/eprbell/rp2/blob/main/docs/user_faq.md#how-to-handle-a-transfer-of-funds-from-a-wallet-or-exchange-to-another"&gt;MOVE&lt;/a&gt;: the fee for moving currency between two accounts controlled by the same owner;&lt;/li&gt;
&lt;li&gt;SELL: specifically, sale and &lt;a href="https://github.com/eprbell/rp2/tree/main/docs/user_faq.md#how-to-handle-conversion-of-a-cryptocurrency-to-another"&gt;conversion of a cryptocurrency to another&lt;/a&gt;. RP2 splits them in two subcategories:

&lt;ul&gt;
&lt;li&gt;long-term capital gains (if supported by the country plugin: e.g. in the US it's 1 year or more), or&lt;/li&gt;
&lt;li&gt;short-term capital gains otherwise;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/eprbell/rp2/tree/main/docs/user_faq.md#how-to-handle-income-from-staking"&gt;STAKING&lt;/a&gt;: gains from staking;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/eprbell/rp2/blob/main/docs/user_faq.md#how-to-handle-income-from-crypto-wages"&gt;WAGES&lt;/a&gt;: income from crypto wages.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For each of these categories RP2 generates an output spreadsheet with transaction details and computed gains/losses (see &lt;a href="https://github.com/eprbell/rp2/tree/main/README.md#input-and-output-files"&gt;Input and Output Files&lt;/a&gt; for more details). Users can give this output to their tax preparer with the rest of their tax documentation (see also FAQ on &lt;a href="https://github.com/eprbell/rp2/tree/main/docs/user_faq.md#which-crypto-tax-forms-to-file"&gt;which tax forms to file&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  Call for Coders
&lt;/h2&gt;

&lt;p&gt;Help us expand RP2 and DaLI's functionality!&lt;/p&gt;

&lt;p&gt;RP2 is the first component of what could be a powerful, community-driven suite of open-source, privacy-focused, crypto tax software. It is intended as the core of a larger project ecosystem, maintained by the community. These projects can extend RP2 and DaLI's capability, usefulness and ease of use in new ways. For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/eprbell/dali-rp2/blob/main/README.dev.md#dali-internals"&gt;DaLI data loader plugins&lt;/a&gt;: add support for more exchanges and wallets (via REST API and/or CSV files). &lt;a href="https://github.com/eprbell/dali-rp2"&gt;DaLI&lt;/a&gt;, the RP2 data loader, uses them to generate an input ODS file and a config file that can be fed directly to RP2;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/eprbell/rp2/tree/main/README.dev.md#plugin-development"&gt;RP2 plugins&lt;/a&gt;: RP2 can be expanded via its programmable plugin architecture, which enables support for new output generators, countries and accounting methods;&lt;/li&gt;
&lt;li&gt;RP2 GUI: make RP2 more user-friendly and accessible to people who are not familiar with the CLI;&lt;/li&gt;
&lt;li&gt;RP2 high-level interface: RP2 captures complex tax events using a few powerful, low-level primitives, aggregated in patterns. A higher level tool might abstract out these patterns and present them to the user in a friendlier way (for example it may capture a complex concept like DeFi bridging as a primitive, rather than a pattern);&lt;/li&gt;
&lt;li&gt;more...&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you'd like to start an ecosystem project, please open an &lt;a href="https://github.com/eprbell/rp2/issues"&gt;issue&lt;/a&gt; to let the RP2 community know.&lt;/p&gt;

</description>
      <category>crypto</category>
      <category>tax</category>
      <category>bitcoin</category>
      <category>privacy</category>
    </item>
  </channel>
</rss>
