Since fees is a dollar amount and not a percentage, the profit and loss formulas needed to be adjusted.
I've also taken the opportunity to track the realized profit and loss in the database, it might be useful for people who want to find out how much slippage there is when the orders are getting filled.
Since
fees
is a dollar amount and not a percentage, the profit and loss formulas needed to be adjusted.I've also taken the opportunity to track the realized profit and loss in the database, it might be useful for people who want to find out how much slippage there is when the orders are getting filled.