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}"); }
public async Task Test_CollapsePositions() { var report = await _restClient.CollapsePositionsAsync( NewClOrdId("collapse"), MarginAccountId, "XBTUSD", _token).ConfigureAwait(false); report.Should().NotBeNull(); report.Should().NotBeNull(); }