Skip to content

Commit

Permalink
Changed time.sleep to rectify new CoinGecko API limits
Browse files Browse the repository at this point in the history
  • Loading branch information
freQniK committed Aug 11, 2022
1 parent 67b0258 commit db7cdd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dvpn_price.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit db7cdd6

Please sign in to comment.