コード例 #1
0
 /// <summary>
 /// Send to exchange command to place limit order.
 /// </summary>
 /// <param name="symbol">Symbol of order.<see cref="Symbol"/></param>
 /// <param name="side">Buy or Sell. <see cref="OrderSide"/></param>
 /// <param name="quantity">Quantity of order.</param>
 /// <param name="price">Price of order.</param>
 /// <param name="orderStatusHandler">Method that will called when order status received.</param>
 /// <param name="errorHandler">Method that will called when order error received.</param>
 /// <returns>OrderLimit if success else null. <see cref="OrderLimit"/></returns>
 public OrderLimit PlaceOrderLimit(Symbol symbol, OrderSide side, decimal quantity, decimal price,
                                   Action <OrderBase> orderStatusHandler = null, Action <OrderBase, ErrorCodes> errorHandler = null) =>
 Account?.PlaceOrderLimit(symbol, side, quantity, price, orderStatusHandler, errorHandler);