Skip to content

Commit

Permalink
Bug fixes.
Browse files Browse the repository at this point in the history
Additional diagnostic program added

Changes to be committed:
	modified:   Base/Conditional.oanda
	new file:   Extras/CodeProofs/MapMarket
  • Loading branch information
rapmd73 committed Nov 5, 2023
1 parent 5be23c5 commit 8d16d26
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Base/Conditional.oanda
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def ReduceLotSize(relay,pair,val):

sprice=float(orderDetail[-1]['price'])
rpl=float(orderDetail[-1]['pl'])
relay.JRLog.Write(f"{lossID} -> {oid} ReduceBy {Dir}, {val}: {price:.5f} -> {sprice:5f}/{rpl:.5f}")
relay.JRLog.Write(f"{lossID} -> {oid} Rduc {Dir}, {val}: {price:.5f} -> {sprice:5f}/{rpl:.5f}")

###
### Main driver
Expand Down
25 changes: 25 additions & 0 deletions Extras/CodeProofs/MapMarket
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Jackrabbit Relay
# 2021 Copyright © Robert APM Darin
# All rights reserved unconditionally.

import sys
sys.path.append('/home/JackrabbitRelay2/Base/Library')
import os
import json

import JackrabbitRelay as JRR

def Help(args,argslen):
print("An exchange and an account must be provided.")
sys.exit(1)

relay=JRR.JackrabbitRelay(Usage=Help)

exchangeName=relay.GetExchange()
account=relay.GetAccount()

for cur in relay.Markets:
print(relay.Markets[cur])

0 comments on commit 8d16d26

Please sign in to comment.