calculate_gains: Get gains from cryptocompare

Description Usage Arguments Value Author(s) Examples

Description

Calculate the gains of a cryptocurrency with respect to the closing price within a xts of ohlc-values. Referred_to columns must be named "close" and "open".

Usage

1

Arguments

data

A xts with ohlc-values

Value

A time series with gains

Author(s)

Philipp Giese

Examples

1
calculate_gains(calculate_price("CCCAGG","BTC","USD",7))

philbtcecho/btcecho documentation built on June 6, 2019, 10:59 a.m.