public void should_close_long_market_position_by_limit() { // arrange var @params = OrderPOSTRequestParams.CreateSimpleMarket("XBTUSD", 3, OrderSide.Buy); var result = Sut.Execute(BitmexApiUrls.Order.PostOrder, @params).Result.Result; result.Should().NotBeNull(); result.OrdStatus.Should().Be("Filled"); result.OrderId.Should().NotBeNull(); // act var resultClosePostion = Sut.Execute(BitmexApiUrls.Order.PostOrder, OrderPOSTRequestParams.ClosePositionByLimit("XBTUSD", _xbtAvgPrice + LimitPriceSubtractor)).Result.Result; // assert resultClosePostion.Should().NotBeNull(); resultClosePostion.OrderId.Should().NotBeNull(); }