prepare_report: Prepare info for full crypto tax report

View source: R/prepare_report.R

prepare_reportR Documentation

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
)

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.

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(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

cryptoTax documentation built on March 7, 2023, 7:46 p.m.