We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac2def8 commit 46db3ccCopy full SHA for 46db3cc
pyth_observer/__init__.py
@@ -270,6 +270,12 @@ async def get_coingecko_prices(self):
270
updates: Dict[str, int] = {} # Unix timestamps
271
272
for symbol in data:
273
+ if "usd" not in data[symbol] or "last_updated_at" not in data[symbol]:
274
+ logger.warning(
275
+ f"CoinGecko data for {symbol} doesn't include `usd` and/or `last_updated_at`. CoinGecko returned: {data[symbol]}."
276
+ )
277
+ continue
278
+
279
prices[symbol] = data[symbol]["usd"]
280
updates[symbol] = data[symbol]["last_updated_at"]
281
0 commit comments