コード例 #1
0
        private async Task StopOrderAsync(CancellationToken cancellationToken)
        {
            var executionReport = await _restClient.NewStopOrderAsync(
                CommonFuncs.NewClOrdId("stop-order"),
                "BTC/USDT",
                Side.Sell,
                0.01M,
                SpotAccountId,
                9500,
                cancellationToken : cancellationToken).ConfigureAwait(false);

            HandleOrderReport(executionReport);
        }
コード例 #2
0
        public async Task Test_NewStopOrder()
        {
            var er = await _restClient.NewStopOrderAsync(
                NewClOrdId("stop"),
                "BTC/USDT",
                Side.Sell,
                0.01M,
                SpotAccountId,
                9500,
                cancellationToken : _token).ConfigureAwait(false);

            er.Should().NotBeNull();
            er.Should().NotBeNull();
            er.ExecType.Should().Be(ExecType.NewExec);
        }