Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ def get_crypto_prices(crypto_ids: list[str], currency: str = "usd") -> dict:
|
|
| 25 |
if not crypto_ids:
|
| 26 |
return {"error": "crypto_ids must be a non-empty list"}
|
| 27 |
|
| 28 |
-
url = "https://api.coingecko.com/api/v3/simple/price
|
| 29 |
params = {"ids": ",".join(crypto_ids), "vs_currencies": currency.lower()}
|
| 30 |
|
| 31 |
try:
|
|
|
|
| 25 |
if not crypto_ids:
|
| 26 |
return {"error": "crypto_ids must be a non-empty list"}
|
| 27 |
|
| 28 |
+
url = "https://api.coingecko.com/api/v3/simple/price"
|
| 29 |
params = {"ids": ",".join(crypto_ids), "vs_currencies": currency.lower()}
|
| 30 |
|
| 31 |
try:
|