Example #1
0
        public async Task <MultiTraderCreditProviderWithdrawResponse> WithdrawAsync(MultiTraderCreditProviderWithdrawRequest request, CancellationToken cancellation)
        {
            var response = new MultiTraderCreditProviderWithdrawResponse();
            var sr       = await ApplyAsync(new MultiTraderCreditProviderApplyRequest
            {
                TraderKey = request.TraderKey,
                UserName  = request.UserName,
                Amount    = -request.Amount,
                Info      = request.Info,
                AuditCode = "CRD_WTHDRW"
            }, cancellation);

            response.Copy(sr);

            return(response);
        }
Example #2
0
        public MultiTraderCreditProviderWithdrawResponse Withdraw(MultiTraderCreditProviderWithdrawRequest request)
        {
            var response = new MultiTraderCreditProviderWithdrawResponse();
            var sr       = Apply(new MultiTraderCreditProviderApplyRequest
            {
                TraderKey = request.TraderKey,
                UserName  = request.UserName,
                Amount    = -request.Amount,
                Info      = request.Info,
                AuditCode = "CRD_WTHDRW"
            });

            response.Copy(sr);

            return(response);
        }