Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,9 +12,6 @@ import pandas as pd
|
|
| 12 |
# """
|
| 13 |
# # return
|
| 14 |
|
| 15 |
-
@tool
|
| 16 |
-
# Function to get current prices of specified cryptocurrencies
|
| 17 |
-
def get_crypto_prices(crypto_ids='tokens', currency='usd'): str
|
| 18 |
|
| 19 |
"""This is a tool to get current crypto token market prices in usd currency using the coingecko api.
|
| 20 |
|
|
@@ -26,7 +23,11 @@ def get_crypto_prices(crypto_ids='tokens', currency='usd'): str
|
|
| 26 |
Returns:
|
| 27 |
(str): You should return all valid requests with the crypto id, and its current price in usd denominations.
|
| 28 |
"""
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
url = "https://pro-api.coingecko.com/api/v3/simple/price?&x_cg_demo_api_key=CG-4TqTQv39JuPvRFmz3dz5Kcff"
|
| 31 |
|
| 32 |
response = requests.get(url)
|
|
|
|
| 12 |
# """
|
| 13 |
# # return
|
| 14 |
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
"""This is a tool to get current crypto token market prices in usd currency using the coingecko api.
|
| 17 |
|
|
|
|
| 23 |
Returns:
|
| 24 |
(str): You should return all valid requests with the crypto id, and its current price in usd denominations.
|
| 25 |
"""
|
| 26 |
+
|
| 27 |
+
@tool
|
| 28 |
+
# Function to get current prices of specified cryptocurrencies
|
| 29 |
+
def get_crypto_prices(crypto_ids='tokens', currency='usd'): str
|
| 30 |
+
|
| 31 |
url = "https://pro-api.coingecko.com/api/v3/simple/price?&x_cg_demo_api_key=CG-4TqTQv39JuPvRFmz3dz5Kcff"
|
| 32 |
|
| 33 |
response = requests.get(url)
|