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