Calculate price slippage more reliably and allow specifying order type and time in force
This commit is contained in:
@@ -54,7 +54,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": trade.time_in_force.upper(),
|
||||
"instrument": trade.symbol,
|
||||
"units": str(amount),
|
||||
"type": trade.type.upper(),
|
||||
|
||||
Reference in New Issue
Block a user