format_ACB: Formats transactions with ACB

View source: R/format_ACB.R

format_ACBR Documentation

Formats transactions with ACB

Description

Formats transaction data with Adjusted Cost Base (ACB), along with ACB per share and realized capital gains or losses.

Usage

format_ACB(
  data,
  as.revenue = c("staking", "interests", "mining"),
  sup.loss = TRUE,
  cl = NULL,
  verbose = TRUE
)

Arguments

data

The dataframe

as.revenue

Which should be treated as revenue, in list of c("staking", "interests", "mining").

sup.loss

Logical, whether to take superficial losses into account.

cl

Number of cores to use for parallel processing.

verbose

Logical: if FALSE, does not print progress bar or warnings to console.

Value

A data frame, formatted for the Adjusted Cost Base (ACB).

Examples

all.data <- format_shakepay(data_shakepay)
format_ACB(all.data, verbose = FALSE)

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