sleeyax / voltra

Cross-market volatile cryptocurrency trading bot
GNU General Public License v3.0
29 stars 2 forks source link

fix: pnl formulas #18

Closed Newtoniano closed 2 months ago

Newtoniano commented 2 months ago

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.