get_price_avg: Get weighted average price of coin pair based on any number...

Description Usage Arguments Value References Examples

View source: R/public_api.R

Description

get_price_avg returns the current trading details (price, vol, open, high, low, etc) of a given coin pair as a volume weighted average based on provided exchanges.

Usage

1
2
get_price_avg(fsym, tsym, exchanges, sign = FALSE, try_conversion = TRUE,
  app_name = NULL)

Arguments

fsym

character. 3 letter name for coin to retreive price history for.

tsym

character. 3 letter name for how price should be reported for fsym.

exchanges

character. Exchanges to build weighted average from. Defaults to 'CCCAGG'.

sign

logical. Should the server sign the response? Defaults to FALSE

try_conversion

logical. Should BTC conversion be used fsym is not trading in tsym on specified exchange? Defaults to TRUE.

app_name

character. Name of app to be passed in API request. Defaults to NULL.

Value

A tibble containing price details as a volume weighted average of the provided exchanges.

References

https://min-api.cryptocompare.com

Examples

1
2
3
4
## Not run: 
get_price_avg("BTC", "USD", c("Coinbase", "Kraken", "Bitfinex"))

## End(Not run)

blairj09/cryptor documentation built on May 23, 2019, 7:32 a.m.