Skip to content

Commit

Permalink
More bug fixes in mimic short selling.
Browse files Browse the repository at this point in the history
Changes to be committed:
	modified:   Base/Library/JRRmimic.py
  • Loading branch information
rapmd73 committed Apr 11, 2024
1 parent 058c651 commit 1133e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Base/Library/JRRmimic.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def UpdateWallet(self,action,asset,amount,price,fee_rate=0):
if self.Wallet['Wallet'][base]>0 and actualAmount>0:
self.Wallet['Wallet'][base]-=actualAmount
elif self.Wallet['Wallet'][base]<0 and actualAmount<0:
self.Wallet['Wallet'][base]+=actualAmount
self.Wallet['Wallet'][base]+=abs(actualAmount)
elif self.Wallet['Wallet'][base]>0 and actualAmount<0 \
or self.Wallet['Wallet'][base]<0 and actualAmount>0:
self.Wallet['Wallet'][base]+=actualAmount
Expand Down

0 comments on commit 1133e9d

Please sign in to comment.