Skip to content

Commit

Permalink
Merge pull request #6 from benletchford/bug-6965-oanda-initialize-sto…
Browse files Browse the repository at this point in the history
…p-market-order-correctly

Fully initialize StopMarketOrder when translating from Oanda's MARKET_IF_TOUCHED properly
  • Loading branch information
Martin-Molinero authored Feb 15, 2023
2 parents 3fda74d + 0a7f0f7 commit b43320a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions QuantConnect.OandaBrokerage/OandaRestApiV20.cs
Original file line number Diff line number Diff line change
Expand Up @@ -620,10 +620,7 @@ private Order ConvertOrder(JToken order)
{
case "MARKET_IF_TOUCHED":
var stopOrder = order.ToObject<MarketIfTouchedOrder>();
qcOrder = new StopMarketOrder
{
StopPrice = stopOrder.Price.ToDecimal()
};
qcOrder = new StopMarketOrder(symbol, quantity, stopOrder.Price.ToDecimal(), time);
break;

case "LIMIT":
Expand Down

0 comments on commit b43320a

Please sign in to comment.