Пример #1
0
 /// <summary>
 /// Gets the amount of buying power reserved to maintain the specified position
 /// </summary>
 /// <param name="parameters">A parameters object containing the security</param>
 /// <returns>The reserved buying power in account currency</returns>
 public ReservedBuyingPowerForPosition GetReservedBuyingPowerForPosition(ReservedBuyingPowerForPositionParameters parameters)
 {
     using (Py.GIL())
     {
         return(_model.GetReservedBuyingPowerForPosition(parameters));
     }
 }
 /// <summary>
 /// Gets the amount of buying power reserved to maintain the specified position
 /// </summary>
 /// <param name="parameters">A parameters object containing the security</param>
 /// <returns>The reserved buying power in account currency</returns>
 public ReservedBuyingPowerForPosition GetReservedBuyingPowerForPosition(ReservedBuyingPowerForPositionParameters parameters)
 {
     using (Py.GIL())
     {
         return((_model.GetReservedBuyingPowerForPosition(parameters)
                 as PyObject).GetAndDispose <ReservedBuyingPowerForPosition>());
     }
 }
        public ReservedBuyingPowerForPosition GetReservedBuyingPowerForPosition(ReservedBuyingPowerForPositionParameters parameters)
        {
            EnsureSecurityExists(parameters.Security);
            var expected = SecurityModel.GetReservedBuyingPowerForPosition(parameters);

            if (reentry)
            {
                return(expected);
            }

            reentry = true;

            reentry = false;
            return(expected);
        }