Check exchange name and remove redundant code, use IOC orders for OANDA

This commit is contained in:
2022-11-10 07:20:28 +00:00
parent 40f6330a13
commit bf863f43b2
3 changed files with 4 additions and 53 deletions

View File

@@ -43,7 +43,7 @@ class OANDAExchange(BaseExchange):
# "price": "1.5000", - added later
"stopLossOnFill": {"timeInForce": "GTC", "price": str(trade.stop_loss)},
"takeProfitOnFill": {"price": str(trade.take_profit)},
"timeInForce": "GTC",
"timeInForce": "IOC",
"instrument": trade.symbol,
"units": str(amount),
"type": trade.type.upper(),