View source: R/endpoint_goldprice.R
get_current_goldprice | R Documentation |
Retrieves the current gold price.
get_current_goldprice()
nbp_api_response object containing the current gold price.
Other goldprice:
get_goldprice_from()
,
get_goldprice_from_interval()
,
get_last_n_goldprices()
,
get_todays_goldprice()
tryCatch(
{
## Fetch the current gold price
response <- get_current_goldprice()
## Retrieve the current gold price value
response$content$cena
},
error = function(e) message(e)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.