coingecko_price {cryptotrackr} | R Documentation |
coingecko_price
Description
coingecko_price
Usage
coingecko_price(
id,
vs_currency,
include_market_cap = NULL,
include_24hr_vol = NULL,
include_24hr_change = NULL,
include_last_updated_at = NULL,
precision = NULL,
timeout_seconds = 60
)
Arguments
id |
one or more comma-separated asset ids to query |
vs_currency |
one or more comma-separated vs_currencies to query |
include_market_cap |
optionally provide a 'true' or 'false' value to include/exclude market cap. The default is 'false'. |
include_24hr_vol |
optionally provide a 'true' or 'false' value to include/exclude 24-hour volume. The default is 'false'. |
include_24hr_change |
optionally provide a 'true' or 'false' value to include/exclude the 24-hour price change. The default is 'false'. |
include_last_updated_at |
optionally provide a 'true' or 'false' value to include/exclude the last updated information. The default is 'false'. |
precision |
optionally specify the decimal precision to return. Choose either 'full' or any number between 0 and 18. |
timeout_seconds |
seconds until the query times out. Default is 60. |
Value
returns a list of currency prices
Examples
coingecko_price(id = 'bitcoin', vs_currency = 'usd', timeout_seconds = 4.5)
[Package cryptotrackr version 1.3.3 Index]