check_new_transactions: Check for new transactions

View source: R/check_new_transactions.R

check_new_transactionsR Documentation

Check for new transactions

Description

Check for new transactions for a given exchange

Usage

check_new_transactions(
  data,
  known.transactions,
  transactions.col,
  description.col = NULL
)

Arguments

data

The dataframe

known.transactions

A list of known transactions

transactions.col

The name of the transaction column

description.col

The name of the description column, if available.

Value

A warning, if there are new transactions. Returns nothing otherwise.

Examples

data <- data_CDC[1:5, ]
known.transactions <- c("crypto_purchase", "lockup_lock")
check_new_transactions(data, 
                       known.transactions = known.transactions,
                       transactions.col = "Transaction.Kind",
                       description.col = "Transaction.Description")

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