We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c38484 commit 6e4dd2bCopy full SHA for 6e4dd2b
investing_algorithm_framework/domain/models/trade/trade.py
@@ -208,7 +208,7 @@ def net_gain_absolute(self):
208
209
if self.last_reported_price is not None:
210
gain = (
211
- self.remaining *
+ self.available_amount *
212
(self.last_reported_price - self.open_price)
213
)
214
@@ -228,7 +228,7 @@ def net_gain_percentage(self):
228
229
230
231
232
233
234
0 commit comments