Exemplo n.º 1
0
 /// <summary>
 /// A LimitOrderRequest specifies the parameters that may be set when creating a Limit Order.
 /// </summary>
 /// <param name="instrument">The Limit Order’s Instrument.</param>
 /// <param name="units">The quantity requested to be filled by the Limit Order. A positive number of units results in a long Order, and a negative number of units results in a short Order.</param>
 /// <param name="price">The price threshold specified for the Limit Order. The Limit Order will only be filled by a market price that is equal to or better than this price.</param>
 public LimitOrderRequest(
     EInstrumentName instrument,
     double units,
     PriceValue price
     )
 {
     this.Type             = EOrderType.LIMIT.ToString();
     this.Instrument       = instrument.ToString();
     this.Units            = units;
     this.Price            = price;
     this.TimeInForce      = ETimeInForce.GTC.ToString();
     this.PositionFill     = EOrderPositionFill.DEFAULT.ToString();
     this.TriggerCondition = EOrderTriggerCondition.DEFAULT.ToString();
 }
Exemplo n.º 2
0
 public InstrumentName(EInstrumentName value)
 {
     this.Value = value;
 }