Skip to contents

Prepare all required information for a full crypto tax report.

Usage

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

Arguments

formatted.ACB

The formatted.ACB object.

list.prices

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

tax.year

The tax year desired.

local.timezone

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

Value

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

Examples

list.prices <- prepare_list_prices(slug = "bitcoin", start.date = "2021-01-01")
#> Object 'list.prices' already exists. Reusing 'list.prices'. To force a fresh download, use argument 'force = TRUE'.
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
#>     type proceeds ACB.total    gains
#> 1  Gains 31.26847  16.64212 14.62635
#> 2 Losses  0.00000   0.00000  0.00000