Fix a case where the amount was not recalculated. Added additional temporary logging.

This commit is contained in:
Reigo Reinmets
2021-12-16 22:57:56 +02:00
parent 337af44901
commit 462270bc5a
4 changed files with 40 additions and 11 deletions

View File

@@ -1563,7 +1563,7 @@ def test_recalc_trade_from_orders_ignores_bad_orders(fee):
side="buy",
price=1,
average=2,
filled=3,
filled=0,
remaining=4,
cost=5,
order_date=arrow.utcnow().shift(hours=-1).datetime,
@@ -1590,7 +1590,7 @@ def test_recalc_trade_from_orders_ignores_bad_orders(fee):
side="buy",
price=1,
average=2,
filled=3,
filled=0,
remaining=4,
cost=5,
order_date=arrow.utcnow().shift(hours=-1).datetime,