Skip to content

Commit b6d28db

Browse files
committed
This has been one of the more difficult bugs to track and trace. It is
strictly related to Oanda and OliverTwist if tracking the presence of existing orders. I think I finally killed it once and for all. Version update. 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/Library/OliverTwist-oanda.py
1 parent c9755da commit b6d28db

7 files changed

+10
-10
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.1015"
31+
Version="0.0.0.1.1020"
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.1015"
70+
Version="0.0.0.1.1020"
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.1015"
19+
Version="0.0.0.1.1020"
2020
BaseDirectory='/home/JackrabbitRelay2/Base'
2121
ConfigDirectory='/home/JackrabbitRelay2/Config'
2222
LogDirectory="/home/JackrabbitRelay2/Logs"

Base/Library/JRRmimic.py

+1-1
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.1015"
51+
self.Version="0.0.0.1.1020"
5252

5353
self.StableCoinUSD=['USDT','USDC','BUSD','UST','DAI','FRAX','TUSD', \
5454
'USDP','LUSD','USDN','HUSD','FEI','TRIBE','RSR','OUSD','XSGD', \

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.1015"
53+
self.Version="0.0.0.1.1020"
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.1015"
113+
self.Version="0.0.0.1.1020"
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/Library/OliverTwist-oanda.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ def CheckStopLoss(relay,Orphan,MarginStrike):
615615
def OrderProcessor(osh):
616616
StartTime=datetime.datetime.now()
617617

618-
# print("OP A")
618+
# print("OP A:")
619619

620620
# Split off the parts we need.
621621
idx=osh['IDX']
@@ -634,13 +634,12 @@ def OrderProcessor(osh):
634634

635635
# shLock.Lock()
636636
try:
637-
if not os.path.exists(idx):
638-
return 'Waiting'
639-
637+
# print("OP B1")
640638
OrphanList=ReadStorehouse(idx=idx)
641639
if len(OrphanList)==0:
642640
return 'Waiting'
643641

642+
# print("OP B2",len(OrphanList))
644643
# Process conditional orders
645644

646645
# For long positions, highestTrade will be closest to take profit, lowest for stop loss
@@ -664,6 +663,7 @@ def OrderProcessor(osh):
664663
# Take profit starts at the lowest order priced and works upward for long.
665664

666665
# Check take profit
666+
# print("OP C")
667667
# print("OP C1",highestTrade)
668668
# print("OP C2",lowestTrade)
669669
if lowestTrade['Order']['Direction'].lower()=='long':

0 commit comments

Comments
 (0)