Skip to content

Commit

Permalink
better risk logging
Browse files Browse the repository at this point in the history
  • Loading branch information
timkpaine committed Jul 9, 2019
1 parent 1636141 commit 946da76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aat/risk.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ def updateAccounts(self):
value += account.value

if value < self.total_funds:
log.info(f'reducing total funds from {self.total_funds} to {value}')
log.info(f'restricting total funds from {self.total_funds} to {value}')
elif value > self.total_funds:
log.info(f'expanding total funds from {self.total_funds} to {value}')

self.total_funds = value
log.info(f'drawdown: {self.total_funds - self.starting_funds}')
Expand Down

0 comments on commit 946da76

Please sign in to comment.