Remove some debug statements

This commit is contained in:
Mark Veidemanis 2022-11-11 07:20:00 +00:00
parent afb0504dca
commit 3f855dfb59
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
2 changed files with 0 additions and 3 deletions

View File

@ -62,11 +62,9 @@ class OANDAExchange(BaseExchange):
} }
} }
if trade.price is not None: if trade.price is not None:
print("PRICE IS NOT NONE")
if trade.type == "limit": if trade.type == "limit":
data["order"]["price"] = str(trade.price) data["order"]["price"] = str(trade.price)
elif trade.type == "market": elif trade.type == "market":
print("IS MARKET")
data["order"]["priceBound"] = str(trade.price) data["order"]["priceBound"] = str(trade.price)
r = orders.OrderCreate(self.account_id, data=data) r = orders.OrderCreate(self.account_id, data=data)
response = self.call(r) response = self.call(r)

View File

@ -224,7 +224,6 @@ def execute_strategy(callback, strategy):
log.error(f"Symbol not supported by account: {symbol}") log.error(f"Symbol not supported by account: {symbol}")
return return
print("INSTRUMENTS", instruments)
# Extract the information for the symbol # Extract the information for the symbol
instrument = strategy.account.client.extract_instrument(instruments, symbol) instrument = strategy.account.client.extract_instrument(instruments, symbol)
if not instrument: if not instrument: