Skip to content

Commit

Permalink
Refinement, diagnostics, bug fixes.
Browse files Browse the repository at this point in the history
Changes to be committed:
	modified:   Base/Library/OliverTwist-ccxt.py
	modified:   Base/Library/OliverTwist-mimic.py
	modified:   Base/Library/OliverTwist-oanda.py
  • Loading branch information
rapmd73 committed Sep 20, 2024
1 parent 2e7f88a commit 34249c0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Base/Library/OliverTwist-ccxt.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,6 @@ def OrderProcessor(osh):
relay.JRLog.Write(f"OT CCXT Broke {sys.exc_info()[-1].tb_lineno}: {idx}, {err}",stdOut=False)

EndTime=datetime.datetime.now()
JRLog.Write(f"OP CCXT Elapsed {idx}/{len(OrphanList)}: {EndTime-StartTime} seconds")
# JRLog.Write(f"OP CCXT Elapsed {idx}/{len(OrphanList)}: {EndTime-StartTime} seconds")

return 'Waiting'
2 changes: 1 addition & 1 deletion Base/Library/OliverTwist-mimic.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,6 @@ def OrderProcessor(osh):
# shLock.Unlock()

EndTime=datetime.datetime.now()
JRLog.Write(f"OP MIMIC Elapsed {idx}/{len(OrphanList)}: {EndTime-StartTime} seconds")
# JRLog.Write(f"OP MIMIC Elapsed {idx}/{len(OrphanList)}: {EndTime-StartTime} seconds")

return 'Waiting'
3 changes: 2 additions & 1 deletion Base/Library/OliverTwist-oanda.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ def ReduceLotSize(relay,oldestTrade=None,val=1):
return

lossID=oldestTrade['ID']
lossIU=float(oldestTrade['Response']['units'])

# Get the direction of the reduction trade right.

Expand Down Expand Up @@ -697,6 +698,6 @@ def OrderProcessor(osh):
# shLock.Unlock()

EndTime=datetime.datetime.now()
JRLog.Write(f"OP OANDA Elapsed {idx}/{len(OrphanList)}: {EndTime-StartTime} seconds")
# JRLog.Write(f"OP OANDA Elapsed {idx}/{len(OrphanList)}: {EndTime-StartTime} seconds")

return 'Waiting'

0 comments on commit 34249c0

Please sign in to comment.