From db7cdd6d2e7c5eadae161f64ac330b1853f73069 Mon Sep 17 00:00:00 2001 From: freqnik Date: Wed, 10 Aug 2022 22:21:40 -0400 Subject: [PATCH] Changed time.sleep to rectify new CoinGecko API limits --- dvpn_price.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvpn_price.py b/dvpn_price.py index 5d429be..087e12b 100644 --- a/dvpn_price.py +++ b/dvpn_price.py @@ -43,7 +43,7 @@ def CoinGeckoPrices(days): data = cg.get_coin_history_by_id(id=coin, date=yesterday.strftime("%d-%m-%Y"),vs_currencies='usd') price_data[coin].append(data["market_data"]["current_price"]["usd"]) #print(price_data[coin]) - time.sleep(2) + time.sleep(10) for coin in list(COINS.keys()): CoinPrices[coin] = mean(price_data[coin])