echoctx commited on
Commit
accf9a8
1 Parent(s): 36dfec9

switch to mexc for price

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.kucoin.com/api/v1/market/stats?symbol=TAO-USDT").json()["data"]["last"])
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