diff --git a/bn.py b/bn.py deleted file mode 100644 index 1e3bd18..0000000 --- a/bn.py +++ /dev/null @@ -1,28 +0,0 @@ -from binance.spot import Spot -from binance.cm_futures import CMFutures - -cm = CMFutures() -spot = Spot() - -# Get klines -def klines(symbol, interval, limit=1000): - lines = spot.klines(symbol,interval, limit=limit) - 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(): - info = spot.exchange_info() - - symbols = [] - for s in info['symbols']: - if s['symbol'].endswith('USDT'): - symbols.append(s['symbol']) - - return symbols \ No newline at end of file