示例#1
0
 /// <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));
示例#2
0
 /// <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));
示例#3
0
 /// <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));