public void PostMarketOrderTest() { var pair = "ETHBTC"; var type = OrderType.BUY; var amount = 1M; var price = 0.02M; var order = _repo.IOCOrder(pair, type, amount, price).Result; Assert.NotNull(order); }
/// <summary> /// Post IOC (Immediate-or-Cancel) Order /// </summary> /// <param name="pair">Trading pair</param> /// <param name="type">Trade type</param> /// <param name="amount">Trade amount</param> /// <param name="price">Trade price</param> /// <returns>Order object</returns> public Order IOCOrder(string pair, OrderType type, decimal amount, decimal price) { return(_repository.IOCOrder(pair, type, amount, price).Result); }