Learn R Programming

cryptoTax (version 0.0.5)

prepare_report: Prepare info for full crypto tax report

Description

Prepare all required information for a full crypto tax report.

Usage

prepare_report(
  formatted.ACB,
  tax.year = "all",
  local.timezone = Sys.timezone(),
  list.prices = NULL
)

Value

A list, containing the following objects: report.overview, report.summary, proceeds, sup.losses, table.revenues, tax.box, pie_exchange, pie_revenue.

Arguments

formatted.ACB

The formatted.ACB object.

tax.year

The tax year desired.

local.timezone

Which time zone to use for the date of the report.

list.prices

A list.prices object from which to fetch coin prices.

Examples

Run this code
list.prices <- prepare_list_prices(coins = "BTC", start.date = "2021-01-01")
all.data <- format_shakepay(data_shakepay)
formatted.ACB <- format_ACB(all.data, verbose = FALSE)
x <- prepare_report(formatted.ACB, list.prices = list.prices)
x$proceeds

Run the code above in your browser using DataLab