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.
get_price_avg(fsym, tsym, exchanges, sign = FALSE, try_conversion = TRUE, app_name = NULL)
fsym | character. 3 letter name for coin to retreive price history for. |
---|---|
tsym | character. 3 letter name for how price should be reported for
|
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. |
A tibble containing price details as a volume weighted average of the provided exchanges.
https://min-api.cryptocompare.com
# NOT RUN { get_price_avg("BTC", "USD", c("Coinbase", "Kraken", "Bitfinex")) # }