Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Funding rate arb - Getting unexpected error running clock tick #7023

Open
rapcmia opened this issue May 10, 2024 · 0 comments
Open

Funding rate arb - Getting unexpected error running clock tick #7023

rapcmia opened this issue May 10, 2024 · 0 comments
Assignees

Comments

@rapcmia
Copy link
Contributor

rapcmia commented May 10, 2024

Describe the bug

When running tests, we observed an error happened while on status --live. It started with Unhandled error in background task: cannot unpack non-iterable NoneType object then ended with Unexpected error running clock tick. on every tick

image


2024-05-10 21:34:49,456 - 37988 - hummingbot.core.rate_oracle.rate_oracle - INFO - Network status has changed to NetworkStatus.CONNECTED. Starting networking...
2024-05-10 21:47:46,892 - 37988 - hummingbot.connector.derivative.binance_perpetual.binance_perpetual_user_stream_data_source.BinancePerpetualUserStreamDataSource - WARNING - The websocket connection was closed (The WS connection was closed unexpectedly. Close code = 1008 msg data: 1008)
2024-05-10 21:47:52,003 - 37988 - hummingbot.connector.derivative.binance_perpetual.binance_perpetual_user_stream_data_source.BinancePerpetualUserStreamDataSource - INFO - Successfully obtained listen key FIDPXvxoAuCXItr6RWnSa7o81qzAYIgzzDQpAXuq9rjzLiczq5PekQfZB78cfX3H
2024-05-10 21:50:49,423 - 37988 - hummingbot.connector.derivative.binance_perpetual.binance_perpetual_api_order_book_data_source.BinancePerpetualAPIOrderBookDataSource - WARNING - The websocket connection was closed (The WS connection was closed unexpectedly. Close code = 1008 msg data: 1008)
2024-05-10 21:50:49,966 - 37988 - hummingbot.connector.derivative.binance_perpetual.binance_perpetual_api_order_book_data_source.BinancePerpetualAPIOrderBookDataSource - INFO - Subscribed to public order book, trade and funding info channels...
2024-05-10 22:00:58,475 - 37988 - hummingbot.core.utils.async_utils - ERROR - Unhandled error in background task: cannot unpack non-iterable NoneType object
Traceback (most recent call last):
  File "/Users/rapcomia/github/hummingbot/development/hummingbot/core/utils/async_utils.py", line 9, in safe_wrapper
    return await c
  File "/Users/rapcomia/github/hummingbot/development/hummingbot/client/command/status_command.py", line 145, in status_check_all
    await self.strategy_status(live=True) + "\n\n Press escape key to stop update.", 0.1
  File "/Users/rapcomia/github/hummingbot/development/hummingbot/client/command/status_command.py", line 78, in strategy_status
    st_status = self.strategy.format_status()
  File "/Users/rapcomia/github/hummingbot/development/scripts/funding_rate_arb.py", line 334, in format_status
    connector_1, connector_2, side, funding_rate_diff = best_combination
TypeError: cannot unpack non-iterable NoneType object
2024-05-10 22:00:59,002 - 37988 - hummingbot.core.clock - ERROR - Unexpected error running clock tick.
Traceback (most recent call last):
  File "hummingbot/core/clock.pyx", line 119, in hummingbot.core.clock.Clock.run_til
    child_iterator.c_tick(self._current_tick)
  File "hummingbot/strategy/strategy_py_base.pyx", line 44, in hummingbot.strategy.strategy_py_base.StrategyPyBase.c_tick
    self.tick(timestamp)
  File "/Users/rapcomia/github/hummingbot/development/hummingbot/strategy/script_strategy_base.py", line 75, in tick
    self.on_tick()
  File "/Users/rapcomia/github/hummingbot/development/hummingbot/strategy/strategy_v2_base.py", line 286, in on_tick
    executor_actions: List[ExecutorAction] = self.determine_executor_actions()
  File "/Users/rapcomia/github/hummingbot/development/hummingbot/strategy/strategy_v2_base.py", line 295, in determine_executor_actions
    actions.extend(self.create_actions_proposal())
  File "/Users/rapcomia/github/hummingbot/development/scripts/funding_rate_arb.py", line 225, in create_actions_proposal
    connector_1, connector_2, trade_side, expected_profitability = best_combination
TypeError: cannot unpack non-iterable NoneType object

Steps to reproduce

Most of the tests the bot is on status --live mode

  • Occurred while on funding rate paid/received event
  • Sudden failed websocket connection from one of exchanges (binance)
  • QA to add more TBA

Release version

dev-1.28.0

Type of installation

Source

Attach required files

05102024.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants