public void PlaceStopLoss_Test()
        {
            var type       = StopType.LIMIT;
            var side       = SIDE.SELL;
            var pair       = "BTCUSD";
            var price      = 6100.00M;
            var stop_price = 6100.00M;
            var size       = 0.5M;

            // act
            var stopLoss = _repoAuth.PlaceStopOrder(type, side, pair, price, stop_price, size).Result;

            // assert
            Assert.NotNull(stopLoss);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Place a stop limit trade
 /// </summary>
 /// <param name="type">Stop Type</param>
 /// <param name="side">Trade side</param>
 /// <param name="pair">Trading pair</param>
 /// <param name="price">Price of trade</param>
 /// <param name="stop_price">Stop price</param>
 /// <param name="size">Size of trade</param>
 /// <returns>OrderResponse object</returns>
 public OrderResponse PlaceStopOrder(StopType type, SIDE side, string pair, decimal price, decimal stop_price, decimal size)
 {
     return(_repository.PlaceStopOrder(type, side, pair, price, stop_price, size).Result);
 }