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.
2 parents 10e17ae + c0b24de commit 87ec075Copy full SHA for 87ec075
examples/long-short.py
@@ -250,7 +250,7 @@ def rerank(self):
250
equity = int(float(self.alpaca.get_account().equity))
251
252
self.shortAmount = equity * 0.30
253
- self.longAmount = equity + self.shortAmount
+ self.longAmount = equity - self.shortAmount
254
255
respGetTPLong = []
256
tGetTPLong = threading.Thread(target=self.getTotalPrice, args=[self.long, respGetTPLong])
0 commit comments