match_prices: 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
)
Value
A data frame, with the following added columns: spot.rate.
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).
Examples
Run this codedata <- format_shakepay(data_shakepay)[c(1:2)]
match_prices(data)
Run the code above in your browser using DataLab