示例#1
0
 public async Task <EmptyResponse> SetPositionBalance(SandboxSetPositionBalanceRequest request,
                                                      CancellationToken cancellationToken = default)
 {
     return(await _rest.Post <SandboxSetPositionBalanceRequest, EmptyResponse>(
                "sandbox/positions/balance", request,
                cancellationToken));
 }
示例#2
0
        public async Task Should_set_position_balance()
        {
            var request = new SandboxSetPositionBalanceRequest
            {
                Figi    = "BBG000D9D830",
                Balance = 1
            };

            var response = await _sandboxService.SetPositionBalance(request, CancellationToken.None);

            ValidateRestResponse(response);
        }