match_prices: Get Fair Market Value (FMV) of transactions

View source: R/match_prices.R

match_pricesR Documentation

Get Fair Market Value (FMV) of transactions

Description

Matches prices obtained through the prepare_list_prices() function with the transaction data frame.

Usage

match_prices(
  data,
  my.coins = NULL,
  start.date = "2021-01-01",
  list.prices = NULL,
  force = FALSE
)

Arguments

data

The dataframe

my.coins

Your coins to match

start.date

What date to start reporting prices for.

list.prices

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

force

Whether to force recreating list.prices even though it already exists (e.g., if you added new coins or new dates).

Value

A data frame, with the following added columns: spot.rate.

Examples

data <- format_shakepay(data_shakepay)[c(1:2)]
match_prices(data)

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