Пример #1
0
 /// <summary>
 /// Wrapper for <see cref = "IBrokerageModel.CanUpdateOrder" /> in Python
 /// </summary>
 /// <param name="security">The security of the order</param>
 /// <param name="order">The order to be updated</param>
 /// <param name="request">The requested updated to be made to the order</param>
 /// <param name="message">If this function returns false, a brokerage message detailing why the order may not be updated</param>
 /// <returns>True if the brokerage would allow updating the order, false otherwise</returns>
 public bool CanUpdateOrder(Security security, Order order, UpdateOrderRequest request, out BrokerageMessageEvent message)
 {
     using (Py.GIL())
     {
         return(_brokerageModel.CanUpdateOrder(security, order, request, out message));
     }
 }