Finish implementing active management hooks

This commit is contained in:
2023-02-18 11:54:30 +00:00
parent 3e35214e82
commit 466b17400f
9 changed files with 271 additions and 123 deletions

View File

@@ -20,7 +20,7 @@ def convert_trades_to_usd(account, trades):
:return: List of trades, with amount_usd added
"""
for trade in trades:
amount = trade["amount"]
amount = D(trade["amount"])
symbol = trade["symbol"]
side = trade["side"]
direction = side_to_direction(side)