Skip to content

Commit

Permalink
Added diagnostics to track broken orders in conditionals.
Browse files Browse the repository at this point in the history
Changes to be committed:
	modified:   Base/Library/CONDccxt.py
	modified:   Base/Library/CONDoanda.py
  • Loading branch information
rapmd73 committed May 22, 2024
1 parent e8b1935 commit eaae942
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Base/Library/CONDccxt.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ def OrderProcessor(Orphan):
else:
# Give OliverTwist a response
relay.JRLog.Write(f"{id}: Order failed with {relay.GetFailedReason(result)}",stdOut=False)
relay.JRLog.Write(f"{id} -> {cid}: {result}",stdOut=False)
return 'Waiting'
else:
# Strike did not happen
Expand Down
1 change: 1 addition & 0 deletions Base/Library/CONDoanda.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ def OrderProcessor(Orphan):
else:
# Give OliverTwist a response
relay.JRLog.Write(f"{id} -> {cid}: Order failed with {relay.GetFailedReason(result)}",stdOut=False)
relay.JRLog.Write(f"{id} -> {cid}: {result}",stdOut=False)
return 'Waiting'
else:
# Strike did not happen
Expand Down

0 comments on commit eaae942

Please sign in to comment.