예제 #1
0
 public ObjRequestOrder GetObjRequestOrder(
     ApiProperties.Symbols symbol,
     decimal amount,
     decimal price,
     ApiProperties.Exchange exchange,
     ApiProperties.OrderSide side,
     ApiProperties.OrderType type)
 {
     return(new ObjRequestOrder(symbol.GetEnumName(), amount, price, exchange.GetEnumName(), side.GetEnumName(), type.GetEnumDescription()));
 }
 public ObjRequestOrder(
     ApiProperties.Symbols symbol,
     decimal amount,
     decimal price,
     ApiProperties.Exchange exchange,
     ApiProperties.OrderSide side,
     ApiProperties.OrderType type)
 {
     this.symbol   = symbol.GetEnumName();
     this.amount   = amount.ToString();
     this.price    = price.ToString();
     this.exchange = exchange.GetEnumName();
     this.side     = side.GetEnumName();
     this.type     = type.GetEnumDescription();
 }
예제 #3
0
 public ObjNewOrder GetReplaceOrder(
     int order_id,
     ApiProperties.Symbols symbol,
     decimal amount,
     decimal price,
     ApiProperties.Exchange exchange,
     ApiProperties.OrderSide side,
     ApiProperties.OrderType type)
 {
     return(this.GetReplaceOrder(order_id, symbol.GetEnumName(), amount, price, exchange.GetEnumName(), side.GetEnumName(), type.GetEnumDescription()));
 }