Ejemplo n.º 1
0
        public NewOrderResponse ExecuteOrder(string symbol, decimal amount, decimal price, OrderExchange exchange, OrderSide side, OrderType type)
        {
            NewOrderRequest  req      = new NewOrderRequest(Nonce, symbol, amount, price, exchange, side, type);
            string           response = SendRequest(req, "POST");
            NewOrderResponse resp     = NewOrderResponse.FromJSON(response);

            return(resp);
        }
Ejemplo n.º 2
0
        public async Task <NewOrderResponse> ExecuteOrder(decimal amount, decimal price, OrderExchange exchange, OrderSymbol symbol, OrderSide side, OrderType type)
        {
            NewOrderRequest req      = new NewOrderRequest(Nonce, symbol, amount, price, exchange, side, type);
            string          response = await SendRequestAsync(req, "POST");

            NewOrderResponse resp = NewOrderResponse.FromJSON(response);

            return(resp);
        }