Ejemplo n.º 1
0
 public void set_IsBuyForCombo(String value) {
   if (StringHelper.isNullOrEmpty(value)) {
     value = this._isBuyForCurrent ? Language.Buy : Language.Sell;
   }
   this._isBuyForCombo = value;
   this.setIsBuyForCurrent(value.equalsIgnoreCase(Language.Buy));
 }
Ejemplo n.º 2
0
  public void set_PriceInfo(DateTime timestamp, boolean priceIsQuote) {
    String info =
        StringHelper.format(
            "MakeOrderAccount.[set_PriceInfo] timestamp={0}, priceIsQuote={1}",
            new Object[] {timestamp, priceIsQuote});
    TradingConsole.traceSource.trace(TraceType.Information, info);

    this._priceTimestamp = timestamp;
    this._priceIsQuote = priceIsQuote;
  }
Ejemplo n.º 3
0
 public void set_LotString(String value) {
   if (StringHelper.isNullOrEmpty(value)) {
     if (this._isBuyForCurrent) {
       this._buyLot = BigDecimal.ZERO;
     } else {
       this._sellLot = BigDecimal.ZERO;
     }
   } else {
     if (this._isBuyForCurrent) {
       this._buyLot = AppToolkit.convertStringToBigDecimal(value);
     } else {
       this._sellLot = AppToolkit.convertStringToBigDecimal(value);
     }
   }
 }
Ejemplo n.º 4
0
 public void unbindOutstanding() {
   if (!StringHelper.isNullOrEmpty(this._outstandingKey)
       && this._bindingSourceForOutstanding != null) {
     RelationOrder.unbind(this._outstandingKey, this._bindingSourceForOutstanding);
   }
 }