Skip to content

Commit 04b7007

Browse files
committed
Bug fix in Mimic emulation of Binance for coins like Floki and Bonk (Extremely
small price levels) File testing bug fix in WalletReset for Mimic Changes to be committed: modified: Base/JackrabbitLocker modified: Base/JackrabbitOliverTwist modified: Base/JackrabbitRelay modified: Base/Library/JRRmimic.py modified: Base/Library/JackrabbitProxy.py modified: Base/Library/JackrabbitRelay.py modified: Base/MIMIC-PlaceOrder modified: Extras/Mimic/WalletReset
1 parent 94ca5c6 commit 04b7007

8 files changed

+15
-12
lines changed

Base/JackrabbitLocker

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import json
2828

2929
import JRRsupport
3030

31-
Version="0.0.0.1.1060"
31+
Version="0.0.0.1.1065"
3232
BaseDirectory='/home/JackrabbitRelay2/Base'
3333
ConfigDirectory='/home/JackrabbitRelay2/Config'
3434
LogDirectory="/home/JackrabbitRelay2/Logs"

Base/JackrabbitOliverTwist

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ import subprocess
6767
import JRRsupport
6868
import JackrabbitRelay as JRR
6969

70-
Version="0.0.0.1.1060"
70+
Version="0.0.0.1.1065"
7171
BaseDirectory='/home/JackrabbitRelay2/Base'
7272
DataDirectory='/home/JackrabbitRelay2/Data'
7373
ConfigDirectory='/home/JackrabbitRelay2/Config'

Base/JackrabbitRelay

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import json
1616

1717
import JRRsupport
1818

19-
Version="0.0.0.1.1060"
19+
Version="0.0.0.1.1065"
2020
BaseDirectory='/home/JackrabbitRelay2/Base'
2121
ConfigDirectory='/home/JackrabbitRelay2/Config'
2222
LogDirectory="/home/JackrabbitRelay2/Logs"

Base/Library/JRRmimic.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class mimic:
4848
# released at exit.
4949

5050
def __init__(self,Exchange,Config,Active,DataDirectory=None):
51-
self.Version="0.0.0.1.1060"
51+
self.Version="0.0.0.1.1065"
5252

5353
self.StableCoinUSD=['USDT','USDC','BUSD','UST','DAI','FRAX','TUSD', \
5454
'USDP','LUSD','USDN','HUSD','FEI','TRIBE','RSR','OUSD','XSGD', \
@@ -294,8 +294,9 @@ def UpdateWallet(self,action,asset,amount,price,fee_rate=0):
294294
# expressed in QUOTE currency, NOT base
295295

296296
minimum,mincost=self.Broker.GetMinimum(symbol=asset)
297-
if self.ForceQuote==True:
298-
minimum=minimum/abs(actualPrice)
297+
# if self.ForceQuote==True:
298+
# minimum=minimum/abs(actualPrice)
299+
# actualAmount=actualAmount/abs(actualPrice)
299300

300301
# Make sure order is above minimum requirements
301302
if abs(actualAmount)<minimum or (abs(actualAmount)*actualPrice)<mincost:

Base/Library/JackrabbitProxy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
class JackrabbitProxy:
5151
def __init__(self,framework=None,payload=None,exchange=None,account=None,asset=None,Usage=None):
5252
# All the default locations
53-
self.Version="0.0.0.1.1060"
53+
self.Version="0.0.0.1.1065"
5454
self.BaseDirectory='/home/JackrabbitRelay2/Base'
5555
self.ConfigDirectory='/home/JackrabbitRelay2/Config'
5656
self.DataDirectory="/home/JackrabbitRelay2/Data"

Base/Library/JackrabbitRelay.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def Success(self,f,s):
110110
class JackrabbitRelay:
111111
def __init__(self,framework=None,payload=None,exchange=None,account=None,asset=None,secondary=None,NoIdentityVerification=False,Usage=None,RaiseError=False):
112112
# All the default locations
113-
self.Version="0.0.0.1.1060"
113+
self.Version="0.0.0.1.1065"
114114
self.NOhtml='<html><title>NO!</title><body style="background-color:#ffff00;display:flex;weight:100vw;height:100vh;align-items:center;justify-content:center"><h1 style="color:#ff0000;font-weight:1000;font-size:10rem">NO!</h1></body></html>'
115115
self.Directories={}
116116
self.Directories['Base']='/home/JackrabbitRelay2/Base'

Base/MIMIC-PlaceOrder

+2-2
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ def main():
172172

173173
isMinimum=False
174174
minimum,mincost=relay.GetMinimum(symbol=relay.Order['Asset'])
175-
if 'binance' in relay.Active['DataExchange']:
176-
minimum=minimum/price
175+
# if 'binance' in relay.Active['DataExchange']:
176+
# minimum=minimum/price
177177

178178
# Handle various currencies and verifications
179179

Extras/Mimic/WalletReset

+4-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ answer=input("If you are sure, answer 'Yes' >")
3333
if answer.lower()=='yes':
3434
walletLock=JRRsupport.Locker(acn,ID=acn)
3535
walletLock.Lock()
36-
os.remove(acn)
37-
os.remove(awn)
36+
if os.path.exists(acn):
37+
os.remove(acn)
38+
if os.path.exists(awn):
39+
os.remove(awn)
3840
walletLock.Unlock()
3941

4042
print(f"{account} has been fully reset")

0 commit comments

Comments
 (0)