powered by
Calculate realized and unrealized capital gains/losses
ACB( data, transaction = "transaction", price = "price", quantity = "quantity", fees = "fees", total.price = "total.price", spot.rate = "spot.rate", as.revenue = c("staking", "interests", "mining"), sup.loss = TRUE, cl = NULL, verbose = TRUE )
A data frame, with the following columns: date, transaction, quantity, price, fees, total.price, total.quantity, ACB, ACB.share, gains
The dataframe
Name of transaction column
Name of price column
Name of quantity column
Name of fees column
Name of total.price column
Name of spot.rate column
Name of as.revenue column
Logical, whether to calculate superficial losses
Number of cores to use for parallel processing.
Logical: if FALSE, does not print progress bar or warnings to console.
FALSE
data <- data_adjustedcostbase1 ACB(data, spot.rate = "price", sup.loss = FALSE) ACB(data, spot.rate = "price")
Run the code above in your browser using DataLab