try
This commit is contained in:
parent
9ed369fdcf
commit
876eb90190
7
bn.py
7
bn.py
@ -9,8 +9,11 @@ def klines(symbol, interval, limit=1000):
|
||||
return lines
|
||||
|
||||
def ticker_price(symbol):
|
||||
prices = cm.ticker_price(symbol)
|
||||
return prices[0]['price'] if len(prices)>0 else 0
|
||||
try:
|
||||
prices = cm.ticker_price(symbol)
|
||||
return prices[0]['price'] if len(prices)>0 else 0
|
||||
except:
|
||||
return 0
|
||||
|
||||
# Get Symbols
|
||||
def symbols():
|
||||
|
||||
Loading…
Reference in New Issue
Block a user