Closed RichestSmoke closed 1 year ago
@oliver-zehentleitner I can also observe this issue on my scripts, after 2-3 days of activity. Any hints what can cause this problem ? Im not using colorama in my code
Ran into the same issue. The disable_colorama
flag isn't forwarded down to BinanceRestApiManager
instance used by the BinanceWebSocketApiRestclient
class.
I noticed the BinanceRestApiManager
class resides here which is where I think the fix would be.
duplicate of https://github.com/LUCIT-Systems-and-Development/unicorn-binance-websocket-api/issues/338
Ran into the same issue. The
disable_colorama
flag isn't forwarded down toBinanceRestApiManager
instance used by theBinanceWebSocketApiRestclient
class.I noticed the
BinanceRestApiManager
class resides here which is where I think the fix would be.
thanks i add this also to the todo list.
Version of this library.
unicorn_fy: 0.12.2 unicorn_binance_local_depth_cache: not found unicorn_binance_rest_api: 1.10.0 unicorn_binance_trailing_stop_loss: not found unicorn_binance_websocket_api: 1.46.1
Solution to Issue cannot be found in the documentation or other Issues and also occurs in the latest version of this library.
Hardware?
VPS or other cloud hosting
Operating System?
Linux
Python version?
Python3.10
Installed packages
Logging output
Processing method?
process_stream_data
Used endpoint?
binance.com-futures
Issue
the script worked without errors for almost two days and then an error popped up RuntimeError
error: 7
- error_msg: maximum recursion depth exceeded part of my code:`def get_historical_klines (ticker): df = pd.DataFrame(my_client.futures_historical_klines(ticker, '5m', '17 hours ago UTC', 'now UTC')) df = df.drop([6, 7, 8, 9, 10, 11], axis=1) df.columns = ['Time', 'Open', 'High', 'Low', 'Close', 'Volume'] df = df.astype(float) return df
df = get_historical_klines(COIN) os.environ['SSL_CERT_FILE'] = certifi.where() binance_websocket_api_manager = BinanceWebSocketApiManager(exchange="binance.com-futures") def process_new_receives_kline(stream_data, stream_buffer_name=False): global df global new_kline stream_data = json.loads(stream_data) try: stream_data = stream_data['data']['k'] if stream_data['x'] == True: new_kline = {'Time' : float(stream_data['T']), 'Open' : float(stream_data['o']), 'High' : float(stream_data['h']), 'Low' : float(stream_data['l']), 'Close' : float(stream_data['c']), 'Volume' : float(stream_data['v'])} print(new_kline) df.loc[len(df)] = new_kline sma_30 = talib.SMA(df['Close'], timeperiod=30) rsi = talib.RSI(df['Close'], 14) df['SMA_30'] = sma_30 df['RSI'] = rsi
binance_websocket_api_manager.create_stream(["kline_5m"], COIN.lower(), process_stream_data=process_new_receives_kline)`