/// <summary> /// Determines whether the adapter support take-profit orders. /// </summary> /// <param name="adapter">Adapter.</param> /// <returns>Check result.</returns> public static bool IsSupportTakeProfit(this IMessageAdapter adapter) => adapter.IsOrderConditionOf(typeof(ITakeProfitOrderCondition));
/// <summary> /// Determines whether the adapter support withdraw orders. /// </summary> /// <param name="adapter">Adapter.</param> /// <returns>Check result.</returns> public static bool IsSupportWithdraw(this IMessageAdapter adapter) => adapter.IsOrderConditionOf(typeof(IWithdrawOrderCondition));
/// <summary> /// Determines whether the adapter support stop-loss orders. /// </summary> /// <param name="adapter">Adapter.</param> /// <returns>Check result.</returns> public static bool IsSupportStopLoss(this IMessageAdapter adapter) => adapter.IsOrderConditionOf(typeof(IStopLossOrderCondition));