This commit is contained in:
aazhou 2023-07-17 22:19:21 +08:00
parent 9ed369fdcf
commit 876eb90190

3
bn.py
View File

@ -9,8 +9,11 @@ def klines(symbol, interval, limit=1000):
return lines
def ticker_price(symbol):
try:
prices = cm.ticker_price(symbol)
return prices[0]['price'] if len(prices)>0 else 0
except:
return 0
# Get Symbols
def symbols():