Description Usage Value See Also Examples
View source: R/endpoint_goldprice.R
Retrieves the current gold price.
1 |
nbp_api_response object containing the current gold price.
Other goldprice:
get_goldprice_from_interval()
,
get_goldprice_from()
,
get_last_n_goldprices()
,
get_todays_goldprice()
1 2 3 4 5 6 7 8 | 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.