According DemoApp:
Code:
if (sendOrder.Type == OrderType.Market)
{
Order order = new Order(ExecutionProvider, instrumentPortfolio, sendOrder.Instrument, sendOrder.Type, sendOrder.Side, sendOrder.Qty, routeId: sendOrder.Route);
order.AlgoId = sendOrder.AlgoId;
framework.OrderManager.Send(order);
}
You can set provider right in the Order constructor.
Only strategy can set provider without you. Thus, for application you should set it yourself.
For Fills you should set portfolio, because Fills are created in portfolio.
It works in demo app.