|
@@ -1,6 +1,5 @@
|
|
import json
|
|
import json
|
|
|
|
|
|
-import pandas as pd
|
|
|
|
from pycoingecko import CoinGeckoAPI
|
|
from pycoingecko import CoinGeckoAPI
|
|
from rediscluster import RedisCluster
|
|
from rediscluster import RedisCluster
|
|
# from redis import Redis
|
|
# from redis import Redis
|
|
@@ -76,7 +75,7 @@ def get_pancakeswap_price(contract):
|
|
price = round(float(ret.json()['data']['price']), 2)
|
|
price = round(float(ret.json()['data']['price']), 2)
|
|
print(price)
|
|
print(price)
|
|
except:
|
|
except:
|
|
- traceback.print_exec()
|
|
|
|
|
|
+ traceback.print_exc()
|
|
return price
|
|
return price
|
|
|
|
|
|
def get_token_price():
|
|
def get_token_price():
|