Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,7 +39,7 @@ def get_crypto_prices(crypto_ids: list[str], currency: str = "usd") -> dict:
|
|
| 39 |
return {coin: payload.get(currency.lower()) for coin, payload in data.items()}
|
| 40 |
|
| 41 |
# Example usage outside the agent:
|
| 42 |
-
cryptos = ["bitcoin", "ethereum", "ripple", "tether", "bnb", "solana", ]
|
| 43 |
prices = get_crypto_prices(cryptos, currency="usd")
|
| 44 |
print(prices)
|
| 45 |
|
|
|
|
| 39 |
return {coin: payload.get(currency.lower()) for coin, payload in data.items()}
|
| 40 |
|
| 41 |
# Example usage outside the agent:
|
| 42 |
+
cryptos = ["bitcoin", "ethereum", "ripple", "tether", "bnb", "solana", "cardano", "tron", "chainlink"]
|
| 43 |
prices = get_crypto_prices(cryptos, currency="usd")
|
| 44 |
print(prices)
|
| 45 |
|