Skip to content

Commit

Permalink
Fix timeout error code for Bybit (#2130)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunlei authored Dec 19, 2024
1 parent 5af2b5d commit 01f9135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nautilus_trader/adapters/bybit/websocket/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ async def _order(
self._log.error(f"Order request `{req_id}` timed out. op={op}, args={args}")
future.cancel()
self._pending_order_requests.pop(req_id, None)
raise BybitError(code=-10_000, message="Request timed out") from e
raise BybitError(code=-10_408, message="Request timed out") from e

return ack_resp

Expand Down

0 comments on commit 01f9135

Please sign in to comment.