chore: simplify calculation by reducing dict lookups

This commit is contained in:
Matthias
2024-11-04 18:22:14 +01:00
parent ecf5e1ce6b
commit e020bafc38

View File

@@ -1056,7 +1056,7 @@ class Exchange:
"filled": _amount, "filled": _amount,
"remaining": 0.0, "remaining": 0.0,
"status": "closed", "status": "closed",
"cost": (dry_order["amount"] * average), "cost": (_amount * average),
} }
) )
# market orders will always incurr taker fees # market orders will always incurr taker fees