public override OpenOrderEntryModel RequestNewOrder(CreateOrderRequestBase orderNewRequest) { var order = new CreateOrderRequest(this) { Volume = orderNewRequest.Amount, Price = DecimalConverter.Convert(orderNewRequest.Price), OrderType = orderNewRequest.OrderType.Value, Type = orderNewRequest.Side.Value, Pair = orderNewRequest.Pair, Validate = orderNewRequest.Validate, }; var response = order.Request <CreateOrderResponse>(); return(OnCreateOrder(response, response)); }
public override OpenOrderEntryModel RequestNewOrder(CreateOrderRequestBase orderNewRequest) { var order = new CreateOrderRequest(this) { Amount = DecimalConverter.Convert(orderNewRequest.Amount), Price = DecimalConverter.Convert(orderNewRequest.Price), IsHidden = orderNewRequest.IsHidden, Exchange = orderNewRequest.ExchangeType.Value, Type = orderNewRequest.OrderType.Value, Side = orderNewRequest.Side.Value, Symbol = orderNewRequest.Pair }; var response = order.Request <CreateOrderResponse>(); return(OnCreateOrder(response, response)); }
public virtual OpenOrderEntryModel RequestNewOrder(CreateOrderRequestBase orderNewRequest) { return(new OpenOrderEntryModel()); }