private async Task CollapsePositionsAsync(CancellationToken cancellationToken)
        {
            var report = await _restClient.CollapsePositionsAsync(
                CommonFuncs.NewClOrdId("collapse"),
                MarginAccountId,
                "XBTUSD",
                cancellationToken).ConfigureAwait(false);

            _logger.LogInformation($"Position maintenance report: {report}");
        }
Example #2
0
        public async Task Test_CollapsePositions()
        {
            var report = await _restClient.CollapsePositionsAsync(
                NewClOrdId("collapse"),
                MarginAccountId,
                "XBTUSD",
                _token).ConfigureAwait(false);

            report.Should().NotBeNull();
            report.Should().NotBeNull();
        }