amrrs / coinmarketcapr

💰R package to get Cryptocurrencies Market Cap Prices from Coin Market Cap 💰
https://amrrs.github.io/coinmarketcapr/
Other
81 stars 21 forks source link

get_global_marketcap error #33

Open reyesmariana141 opened 2 years ago

reyesmariana141 commented 2 years ago

I tried to use this function: however its got an error

get_global_marketcap(latest = FALSE, count = 10, interval = "yearly", time_start = Sys.Date()-180, time_end = Sys.Date())

this is the result:

x The request was not succesfull! Request URL: https://pro-api.coinmarketcap.com/v1/global-metrics/quotes/historical?convert=USD&count=10&interval=yearly&time_start=2021-09-10&time_end=2021-09-10 Response Content: { "status": { "timestamp": "2022-03-09T01:22:54.602Z", "error_code": 1006, "error_message": "Your API Key subscription plan doesn't support this endpoint.", "elapsed": 0, "credit_count": 0 } }

Thank you in advance!

amrrs commented 2 years ago

I think this requires the paid API key

rashmeetkaur99 commented 2 years ago

get the global market cap details and assign it to a dataframe

latest_marketcap <- get_global_marketcap('EUR') ‼ The old API is used when no 'apikey' is given. Error: lexical error: invalid char in json text.

I received the following error while executing the same command.

amrrs commented 2 years ago

Did you try with the API key?