heyajohnny / cryptoinfo

Provides Home Assistant sensors for all cryptocurrencies supported by CoinGecko
GNU General Public License v3.0
46 stars 13 forks source link

Error fetching update from coingecko: 0 - response status: 429 - Too Many Requests #45

Closed 1mfaasj closed 3 months ago

1mfaasj commented 3 months ago

Hi, I've got this error multiple times a day: Error fetching update from coingecko: 0 - response status: 429 - Too Many Requests

Do you know what the api quota is? how many requests are we allowed te make?

I'm using this config and already changed update_frequency to 15 (instead of 1) but unfortunately the error stays. the frequency is in minutes right? you know this for sure?

sensor:
  - platform: cryptoinfo
    id: "wallet"
    cryptocurrency_name: "bitcoin"
    currency_name: "usd"
    unit_of_measurement: "$"
    multiplier: 1
    update_frequency: 15
  - platform: cryptoinfo
    id: "wallet"
    cryptocurrency_name: "ethereum"
    currency_name: "usd"
    unit_of_measurement: "$"
    multiplier: 1
    update_frequency: 15
  - platform: cryptoinfo
    id: "wallet"
    cryptocurrency_name: "polygon-ecosystem-token"
    currency_name: "usd"
    unit_of_measurement: "$"
    multiplier: 1
    update_frequency: 15
heyajohnny commented 3 months ago

I'm using this config and already changed update_frequency to 15 (instead of 1) but unfortunately the error stays. the frequency is in minutes right? you know this for sure?

The frequency is in minutes.

CoinGecko’s Public API has a rate limit of 5 to 15 calls per minute, depending on usage conditions worldwide. Please note that these rate limits are applied per API key, per IP address

So, if you're only using the above sensors you shouldn't get these errors. But if you're using other software that also uses the CoinGecko API it's possible that you're exceeding the limit

heyajohnny commented 3 months ago

Since I can't do anything about it, I'm closing the issue.