crypto-price-widget icon indicating copy to clipboard operation
crypto-price-widget copied to clipboard

No Values and No Updates today

Open LeeS57 opened this issue 3 years ago • 11 comments

Widget on Windows 10 is not updating or displaying any values.

LeeS57 avatar Apr 21 '21 12:04 LeeS57

Hello, after some debugging it seems like after a while I got this error:

{"Response":"Error","Message":"You are over your rate limit please upgrade your account!","HasWarning":false,"Type":99,"RateLimit":{"calls_made":{"second":1,"minute":7,"hour":115,"day":120,"month":62582,"total_calls":77902},"max_calls":{"second":20,"minute":300,"hour":3000,"day":7500,"month":50000}},"Data":{}}

Basically we reached the API rate limit. I'll look into it later, if possible change to another API.

Hackmastr avatar Apr 23 '21 13:04 Hackmastr

thx for looking at it! Maybe reduce the number of "refresh or calls "? Not sure how often the widget checks the price per minute but I could leave with a bit less frequently if it helps. If its due to number of users diff story of course... regards Leo

mobilisinuk avatar Apr 23 '21 18:04 mobilisinuk

Looks like @RenanMsV has done that. If he's still active maybe he can release it, if he's not I'll merge his into mine and release it.

Hackmastr avatar Apr 25 '21 11:04 Hackmastr

By default it updates each 5 seconds. But the market data is cached for 10 seconds, so the app calls it twice and get the same value. I suggest a 10 seconds default update interval or a little more.

RenanMsV avatar Apr 25 '21 14:04 RenanMsV

I am having the same issue, started yesterday, only on my work laptop, my other PC is working just fine.

Sipheren avatar Apr 26 '21 23:04 Sipheren

Hello, after some debugging it seems like after a while I got this error:

{"Response":"Error","Message":"You are over your rate limit please upgrade your account!","HasWarning":false,"Type":99,"RateLimit":{"calls_made":{"second":1,"minute":7,"hour":115,"day":120,"month":62582,"total_calls":77902},"max_calls":{"second":20,"minute":300,"hour":3000,"day":7500,"month":50000}},"Data":{}}

Basically we reached the API rate limit. I'll look into it later, if possible change to another API.

Which API does it currently use?

Edit: Nevermind, found it. Cryptocompare

cousinit99 avatar Apr 28 '21 21:04 cousinit99

Hello, after some debugging it seems like after a while I got this error:

{"Response":"Error","Message":"You are over your rate limit please upgrade your account!","HasWarning":false,"Type":99,"RateLimit":{"calls_made":{"second":1,"minute":7,"hour":115,"day":120,"month":62582,"total_calls":77902},"max_calls":{"second":20,"minute":300,"hour":3000,"day":7500,"month":50000}},"Data":{}}

Basically we reached the API rate limit. I'll look into it later, if possible change to another API.

Here, this might be a good one: https://coinpaprika.com/api/

https://github.com/coinpaprika?utf8=%E2%9C%93&q=coinpaprika-api https://api.coinpaprika.com/docs/1.5

Supports over 4000 cryptos, rate limit of 600 per minute, and the best part—it's free.

cousinit99 avatar Apr 28 '21 22:04 cousinit99

Thanks @cousinit99 for the suggestion! I took look at it, but sadly it only supports USD and BTC for current prices. I'll be using this one: https://www.coingecko.com/en/api.

Hackmastr avatar Apr 29 '21 12:04 Hackmastr

🤦‍♂️🤦‍♂️ What good is 10 pings a second if you can't get current prices with them? I can't even... Coingecko looks better anyway.

cousinit99 avatar Apr 30 '21 01:04 cousinit99

Check if the API keeps the current value cached and for how long.

RenanMsV avatar Apr 30 '21 02:04 RenanMsV

Check if the API keeps the current value cached and for how long.

I couldn't find any cache hints on the api docs.

Hackmastr avatar Apr 30 '21 10:04 Hackmastr