Spaces:
Runtime error
Runtime error
switch to mexc for price
Browse files
app.py
CHANGED
@@ -140,7 +140,7 @@ class ModelData:
|
|
140 |
def get_tao_price() -> float:
|
141 |
for i in range(0, METAGRAPH_RETRIES):
|
142 |
try:
|
143 |
-
return float(requests.get("https://api.
|
144 |
except:
|
145 |
if i == METAGRAPH_RETRIES - 1:
|
146 |
raise
|
|
|
140 |
def get_tao_price() -> float:
|
141 |
for i in range(0, METAGRAPH_RETRIES):
|
142 |
try:
|
143 |
+
return float(requests.get("https://api.mexc.com/api/v3/avgPrice?symbol=TAOUSDT").json()["price"])
|
144 |
except:
|
145 |
if i == METAGRAPH_RETRIES - 1:
|
146 |
raise
|