/// <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 virtual ReservedBuyingPowerForPosition GetReservedBuyingPowerForPosition(ReservedBuyingPowerForPositionParameters parameters) { var maintenanceMargin = GetMaintenanceMargin(parameters.Security); return(parameters.ResultInAccountCurrency(maintenanceMargin)); }
/// <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 override ReservedBuyingPowerForPosition GetReservedBuyingPowerForPosition(ReservedBuyingPowerForPositionParameters parameters) { // Always returns 0. Since we're purchasing currencies outright, the position doesn't consume buying power return(parameters.ResultInAccountCurrency(0m)); }