coingecko_price | R Documentation |
coingecko_price
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
)
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. |
returns a list of currency prices
coingecko_price(id = 'bitcoin', vs_currency = 'usd', timeout_seconds = 4.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.