/// <summary>
 /// Get the maximum market order quantity to obtain a position with a given value in account currency
 /// </summary>
 /// <param name="parameters">An object containing the portfolio, the security and the target percentage holdings</param>
 /// <returns>Returns the maximum allowed market order quantity and if zero, also the reason</returns>
 public GetMaximumOrderQuantityForTargetValueResult GetMaximumOrderQuantityForTargetValue(GetMaximumOrderQuantityForTargetValueParameters parameters)
 {
     using (Py.GIL())
     {
         return((_model.GetMaximumOrderQuantityForTargetValue(parameters)
                 as PyObject).GetAndDispose <GetMaximumOrderQuantityForTargetValueResult>());
     }
 }
Exemple #2
0
 /// <summary>
 /// Get the maximum market order quantity to obtain a position with a given value in account currency
 /// </summary>
 /// <param name="parameters">An object containing the portfolio, the security and the target percentage holdings</param>
 /// <returns>Returns the maximum allowed market order quantity and if zero, also the reason</returns>
 public GetMaximumOrderQuantityForTargetValueResult GetMaximumOrderQuantityForTargetValue(GetMaximumOrderQuantityForTargetValueParameters parameters)
 {
     using (Py.GIL())
     {
         return(_model.GetMaximumOrderQuantityForTargetValue(parameters));
     }
 }