Skip to content

Commit 01f9135

Browse files
authored
Fix timeout error code for Bybit (#2130)
1 parent 5af2b5d commit 01f9135

File tree

1 file changed

+1
-1
lines changed
  • nautilus_trader/adapters/bybit/websocket

1 file changed

+1
-1
lines changed

nautilus_trader/adapters/bybit/websocket/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ async def _order(
452452
self._log.error(f"Order request `{req_id}` timed out. op={op}, args={args}")
453453
future.cancel()
454454
self._pending_order_requests.pop(req_id, None)
455-
raise BybitError(code=-10_000, message="Request timed out") from e
455+
raise BybitError(code=-10_408, message="Request timed out") from e
456456

457457
return ack_resp
458458

0 commit comments

Comments
 (0)