fix: Fix typos in bybit_execution_gateway.py

* Change 'new_req' -> 'req'
* Change 'self.exe_report_callback' -> 'self.bridge.on_execution_report'

...this is what you get when you take shortcuts and copy/paste code.
This commit is contained in:
John Colvin committed 2025-08-18 22:14:55 +00:00
1 parent 933511f430
commit 5af98658d8
1 file changed
+3 -3
@@ -480,8 +480,8 @@ class BybitExecutionGateway(ExecutionGateway):
continue
if (not od.is_active) and (od.bts_id in self.buffered_requests):
del self.buffered_requests[od.bts_id]
if od.on_update_data(o) and self.exe_report_callback:
self.exe_report_callback(od.to_exe_report(od))
if od.on_update_data(o) and self.bridge:
self.bridge.on_execution_report(od.to_exe_report(o))
next_pg = http_res["result"].get("nextPageCursor")
if not next_pg:
break
@@ -680,7 +680,7 @@ class BybitExecutionGateway(ExecutionGateway):
)
)
if old_req:
new_req = merge_order_req(old_req, new_req)
new_req = merge_order_req(old_req, req)
if new_req:
self.buffered_requests[bts_id] = new_req
else: