get_price: Get price data for one or more coin(s).

Description Usage Arguments Value References Examples

View source: R/public_api.R

Description

get_price provides price information about selected coins in terms of other coins.

Usage

1
2
get_price(fsyms, tsyms, exchange = "CCCAGG", sign = FALSE,
  try_conversion = TRUE, app_name = NULL)

Arguments

fsyms

character. 3 letter name(s) for coins to retreive price details for.

tsyms

character. 3 letter name(s) for how price should be reported for fsyms.

exchange

character. Exchange to query. Defaults to 'CCCAGG'.

sign

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

try_conversion

logical. Should BTC conversion be used if 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 about selected coin(s).

References

https://www.cryptocompare.com/api#-api-data-price-

Examples

1
2
3
4
5
6
7
8
## Not run: 
# Get BTC price in USD
get_price("BTC", "USD")

# Get BTC and ETH price in USD and EUR
get_price(c("BTC", "ETH"), c("USD", "EUR"))

## End(Not run)

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