コード例 #1
0
        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));
        }
コード例 #2
0
ファイル: BitfinexExchange.cs プロジェクト: vinhins/IntTrader
        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));
        }
コード例 #3
0
ファイル: ExchangeBase.cs プロジェクト: vinhins/IntTrader
 public virtual OpenOrderEntryModel RequestNewOrder(CreateOrderRequestBase orderNewRequest)
 {
     return(new OpenOrderEntryModel());
 }