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

rate limits breached at Coingecko #36

Open
cryptofitzle opened this issue Aug 23, 2022 · 2 comments
Open

rate limits breached at Coingecko #36

cryptofitzle opened this issue Aug 23, 2022 · 2 comments

Comments

@cryptofitzle
Copy link

cryptofitzle commented Aug 23, 2022

pyth-observer_main on ny5t-rwdbel3 is currently not running (see also) - restarting results in an immediate crash. Log file suggests that a rate limit is breached: "'error_code': 429, 'error_message': "You've exceeded the Rate Limit. Please visit https://www.coingecko.com/en/api/pricing to subscribe to our API plans for higher rate limits.""
A free of charge API Data plan is available, but has a rate limit of 50 requests/minute, higher rate limit plans are available, but rather expensive. -> So either buy a better plan or change requests/minute.
a patch is written already, see: https://github.com/pyth-network/pyth-observer/pull/33/files

@cctdaniel
Copy link
Contributor

is this running the latest version?

the latest commit throttles the request to once per minute since CoinGecko updates the price every 1-10 minutes (more info here: https://github.com/pyth-network/pyth-observer/blob/main/pyth_observer/coingecko.py#L27-L30)

however, we should catch the exception and not letting it crash the program if CojnGecko is down, I've replied to the PR here: #33 (comment)

1 similar comment
@cctdaniel
Copy link
Contributor

is this running the latest version?

the latest commit throttles the request to once per minute since CoinGecko updates the price every 1-10 minutes (more info here: https://github.com/pyth-network/pyth-observer/blob/main/pyth_observer/coingecko.py#L27-L30)

however, we should catch the exception and not letting it crash the program if CojnGecko is down, I've replied to the PR here: #33 (comment)

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

2 participants