Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_global_marketcap error #33

Open
reyesmariana141 opened this issue Mar 9, 2022 · 3 comments
Open

get_global_marketcap error #33

reyesmariana141 opened this issue Mar 9, 2022 · 3 comments

Comments

@reyesmariana141
Copy link

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
Copy link
Owner

amrrs commented Mar 9, 2022

I think this requires the paid API key

@rashmeetkaur99
Copy link

#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
Copy link
Owner

amrrs commented May 24, 2022

Did you try with the API key?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants