fix: Reset last filled qty to 0 on updates with no fills in bybit gw

For example, on status change updates.
This commit is contained in:
John Colvin committed 2025-08-18 18:54:38 +00:00
1 parent 63291d7374
commit 933511f430
1 file changed
+2
@@ -164,6 +164,8 @@ class OrderData:
lfp = round(lfp, 7)
self.last_filled_price = lfp
self.last_filled_quantity = lfq
else:
self.last_filled_quantity = 0
self.filled_quantity = filled_quantity
self.avg_filled_price = avg_filled_price
match status: