Skip to content

Bybit_perpetual - failed to place order using condor #103

Description

@nikspz

Describe the bug

Bybit_perpetual - failed to place order using condor

Steps to reproduce

  1. set up condor with claude
  2. connect bybit_perpetual
  3. ask to place limit BTC-USDT order 0.001 at 80000 for bybit_perpetual
  4. review order failed with The order was not placed — it failed immediately with INSUFFICIENT_BALANCE.

Attach required files

Image
18:45:15.899 POST /executors/search
INFO:     172.18.0.1:34452 - "POST /executors/search HTTP/1.1" 200 OK
18:46:20.061 GET /executors/types/order_executor/config
INFO:     172.18.0.1:41140 - "GET /executors/types/order_executor/config HTTP/1.1" 200 OK
2026-05-14 18:46:20,071 - hummingbot.strategy_v2.executors.order_executor.order_executor - ERROR - Not enough budget to open position.
18:46:20.066 POST /executors/
INFO:     172.18.0.1:41140 - "POST /executors/ HTTP/1.1" 201 Created
18:46:22.553 GET /executors/6dCaSmnMy94d5Wbj2TpLsVCysbggqWWVVN3EJ7LRDeFw
INFO:     172.18.0.1:41140 - "GET /executors/6dCaSmnMy94d5Wbj2TpLsVCysbggqWWVVN3EJ7LRDeFw HTTP/1.1" 200 OK

tried again with leverage 2 and ONEWAY setup

INFO:     172.18.0.1:60042 - "POST /portfolio/state HTTP/1.1" 200 OK
18:48:38.875 POST /trading/master_account/bybit_perpetual/position-mode
INFO:     172.18.0.1:60162 - "POST /trading/master_account/bybit_perpetual/position-mode HTTP/1.1" 400 Bad Request
18:48:50.028 GET /executors/types/order_executor/config
INFO:     172.18.0.1:43452 - "GET /executors/types/order_executor/config HTTP/1.1" 200 OK
2026-05-14 18:48:50,107 - hummingbot.connector.derivative.bybit_perpetual.bybit_perpetual_derivative.BybitPerpetualDerivative - WARNING - Failed to submit BUY order to Bybit_perpetual. Check API key and network connection.
2026-05-14 18:48:50,127 - hummingbot.strategy_v2.executors.order_executor.order_executor - ERROR - Order failed HummingbotBBCUT651cb8c0b79e7a2e2020b. Retrying 0/10
18:48:50.032 POST /executors/
INFO:     172.18.0.1:43452 - "POST /executors/ HTTP/1.1" 201 Created
2026-05-14 18:48:51,040 - hummingbot.connector.derivative.bybit_perpetual.bybit_perpetual_derivative.BybitPerpetualDerivative - WARNING - Failed to submit BUY order to Bybit_perpetual. Check API key and network connection.
2026-05-14 18:48:51,040 - hummingbot.strategy_v2.executors.order_executor.order_executor - ERROR - Order failed HummingbotBBCUT651cb8c1ac74ca2e2020b. Retrying 1/10
2026-05-14 18:48:52,197 - hummingbot.connector.derivative.bybit_perpetual.bybit_perpetual_derivative.BybitPerpetualDerivative - WARNING - Failed to submit BUY order to Bybit_perpetual. Check API key and network connection.
2026-05-14 18:48:52,198 - hummingbot.strategy_v2.executors.order_executor.order_executor - ERROR - Order failed HummingbotBBCUT651cb8c2c6cfda2e2020b. Retrying 2/10
18:48:52.610 GET /executors/4TJXMdfFUMrZ8FJb8qzuLscBFe361LKWsvPRayDvGk4B
INFO:     172.18.0.1:43452 - "GET /executors/4TJXMdfFUMrZ8FJb8qzuLscBFe361LKWsvPRayDvGk4B HTTP/1.1" 200 OK
2026-05-14 18:48:53,197 - hummingbot.connector.derivative.bybit_perpetual.bybit_perpetual_derivative.BybitPerpetualDerivative - WARNING - Failed to submit BUY order to Bybit_perpetual. Check API key and network connection.
2026-05-14 18:48:53,198 - hummingbot.strategy_v2.executors.order_executor.order_executor - ERROR - Order failed HummingbotBBCUT651cb8c3bb1a6a2e2020b. Retrying 3/10
2026-05-14 18:48:54,197 - hummingbot.connector.derivative.bybit_perpetual.bybit_perpetual_derivative.BybitPerpetualDerivative - WARNING - Failed to submit BUY order to Bybit_perpetual. Check API key and network connection.
2026-05-14 18:48:54,198 - hummingbot.strategy_v2.executors.order_executor.order_executor - ERROR - Order failed HummingbotBBCUT651cb8c4af40ba2e2020b. Retrying 4/10
2026-05-14 18:48:55,197 - hummingbot.connector.derivative.bybit_perpetual.bybit_perpetual_derivative.BybitPerpetualDerivative - WARNING - Failed to submit BUY order to Bybit_perpetual. Check API key and network connection.
2026-05-14 18:48:55,197 - hummingbot.strategy_v2.executors.order_executor.order_executor - ERROR - Order failed HummingbotBBCUT651cb8c5a34c8a2e2020b. Retrying 5/10
2026-05-14 18:48:56,191 - hummingbot.connector.derivative.bybit_perpetual.bybit_perpetual_derivative.BybitPerpetualDerivative - WARNING - Failed to submit BUY order to Bybit_perpetual. Check API key and network connection.
2026-05-14 18:48:56,191 - hummingbot.strategy_v2.executors.order_executor.order_executor - ERROR - Order failed HummingbotBBCUT651cb8c6961c3a2e2020b. Retrying 6/10
2026-05-14 18:48:57,192 - hummingbot.connector.derivative.bybit_perpetual.bybit_perpetual_derivative.BybitPerpetualDerivative - WARNING - Failed to submit BUY order to Bybit_perpetual. Check API key and network connection.
2026-05-14 18:48:57,192 - hummingbot.strategy_v2.executors.order_executor.order_executor - ERROR - Order failed HummingbotBBCUT651cb8c78a55ca2e2020b. Retrying 7/10
2026-05-14 18:48:58,192 - hummingbot.connector.derivative.bybit_perpetual.bybit_perpetual_derivative.BybitPerpetualDerivative - WARNING - Failed to submit BUY order to Bybit_perpetual. Check API key and network connection.
2026-05-14 18:48:58,192 - hummingbot.strategy_v2.executors.order_executor.order_executor - ERROR - Order failed HummingbotBBCUT651cb8c87e901a2e2020b. Retrying 8/10
2026-05-14 18:48:59,192 - hummingbot.connector.derivative.bybit_perpetual.bybit_perpetual_derivative.BybitPerpetualDerivative - WARNING - Failed to submit BUY order to Bybit_perpetual. Check API key and network connection.
2026-05-14 18:48:59,192 - hummingbot.strategy_v2.executors.order_executor.order_executor - ERROR - Order failed HummingbotBBCUT651cb8c972b4da2e2020b. Retrying 9/10
2026-05-14 18:49:00,192 - hummingbot.connector.derivative.bybit_perpetual.bybit_perpetual_derivative.BybitPerpetualDerivative - WARNING - Failed to submit BUY order to Bybit_perpetual. Check API key and network connection.
2026-05-14 18:49:00,193 - hummingbot.strategy_v2.executors.order_executor.order_executor - ERROR - Order failed HummingbotBBCUT651cb8ca66c98a2e2020b. Retrying 10/10
2026-05-14 18:49:01,196 - hummingbot.connector.derivative.bybit_perpetual.bybit_perpetual_derivative.BybitPerpetualDerivative - WARNING - Failed to submit BUY order to Bybit_perpetual. Check API key and network connection.
2026-05-14 18:49:22,801 - hummingbot.connector.derivative.backpack_perpetual.backpack_perpetual_derivative.BackpackPerpetualDerivative - WARNING - Failed to fetch leverage. Positions will be loaded on next polling loop: Error executing request GET https://api.backpack.exchange/api/v1/account. HTTP status is 400. Error: {"code":"INVALID_CLIENT_REQUEST","message":"Invalid signature"}
2026-05-14 18:49:25,218 - hummingbot.connector.derivative.bybit_perpetual.bybit_perpetual_derivative.BybitPerpetualDerivative - ERROR - Error fetching positions for BTC-USDT. Response: 'NoneType' object has no attribute 'weight'
Image

HEDGE mode when placing orders also failed to place

Image

HEDGE mode:
Failed to start v2 pmm_v1

bybit_perpetual is not ready. Please wait...
Unexpected error while fetching account updates.
Traceback (most recent call last):
  File "/home/hummingbot/hummingbot/connector/exchange_py_base.py", line 811, in _status_polling_loop
    await self._status_polling_loop_fetch_updates()
  File "/home/hummingbot/hummingbot/connector/derivative/bybit_perpetual/bybit_perpetual_derivative.py", line 322, in _status_polling_loop_fetch_updates
    await safe_gather(
    ...<4 lines>...
    )
  File "/home/hummingbot/hummingbot/core/utils/async_utils.py", line 22, in safe_gather
    return await asyncio.gather(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/hummingbot/hummingbot/connector/derivative/bybit_perpetual/bybit_perpetual_derivative.py", line 410, in _update_balances
    self._validate_exchange_response(unified_wallet_response)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/hummingbot/hummingbot/connector/derivative/bybit_perpetual/bybit_perpetual_derivative.py", line 121, in _validate_exchange_response
    raise IOError(f"{before_text}{formatted_ret_code} - {response['retMsg']}")
OSError: ret_code <10002> - invalid request, please check your server timestamp or recv_window param: req_timestamp[1778785119879],server_timestamp[1778785094358],recv_window[50000]
Could not fetch account updates from Bybit_perpetual. Check API key and network connection.
bybit_perpetual is not ready. Please wait...
Unexpected error while fetching account updates.
Traceback (most recent call last):
  File "/home/hummingbot/hummingbot/connector/exchange_py_base.py", line 811, in _status_polling_loop
    await self._status_polling_loop_fetch_updates()
  File "/home/hummingbot/hummingbot/connector/derivative/bybit_perpetual/bybit_perpetual_derivative.py", line 322, in _status_polling_loop_fetch_updates
    await safe_gather(
    ...<4 lines>...
    )
  File "/home/hummingbot/hummingbot/core/utils/async_utils.py", line 22, in safe_gather
    return await asyncio.gather(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/hummingbot/hummingbot/connector/derivative/bybit_perpetual/bybit_perpetual_derivative.py", line 410, in _update_balances
    self._validate_exchange_response(unified_wallet_response)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/hummingbot/hummingbot/connector/derivative/bybit_perpetual/bybit_perpetual_derivative.py", line 121, in _validate_exchange_response
    raise IOError(f"{before_text}{formatted_ret_code} - {response['retMsg']}")
OSError: ret_code <10002> - invalid request, please check your server timestamp or recv_window param: req_timestamp[1778785120952],server_timestamp[1778785095429],recv_window[50000]
Could not fetch account updates from Bybit_perpetual. Check API key and network connection.
bybit_perpetual is not ready. Please wait...
Unexpected error while fetching account updates.
Traceback (most recent call last):
  File "/home/hummingbot/hummingbot/connector/exchange_py_base.py", line 811, in _status_polling_loop
    await self._status_polling_loop_fetch_updates()
  File "/home/hummingbot/hummingbot/connector/derivative/bybit_perpetual/bybit_perpetual_derivative.py", line 322, in _status_polling_loop_fetch_updates
    await safe_gather(
    ...<4 lines>...
    )
  File "/home/hummingbot/hummingbot/core/utils/async_utils.py", line 22, in safe_gather
    return await asyncio.gather(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/hummingbot/hummingbot/connector/derivative/bybit_perpetual/bybit_perpetual_derivative.py", line 410, in _update_balances
    self._validate_exchange_response(unified_wallet_response)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/hummingbot/hummingbot/connector/derivative/bybit_perpetual/bybit_perpetual_derivative.py", line 121, in _validate_exchange_respo

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions