Exemplo n.º 1
0
        public async Task <OrderStepResponse> BuyStep2(OrderStepResponse step1Response)
        {
            var request  = ToOrderRequest(step1Response);
            var response = await commsecClient.SendOrder(new Request <OrderRequest> (request));

            _requestToken = response.RequestToken;

            return(await Task.FromResult(response));
        }
Exemplo n.º 2
0
 public OrderRequest ToOrderRequest(OrderStepResponse s1Resp)
 {
     return(new OrderRequest
     {
         LimitPrice = s1Resp.LimitPrice.ToString(),
         Quantity = s1Resp.Quantity.ToString(),
         Step = s1Resp.Step,
         OrderType = s1Resp.OrderType,
         AccountNumber = s1Resp.AccountNumber,
         PriceType = s1Resp.PriceType,
         Expiry = s1Resp.Expiry,
         SecurityCheck = s1Resp.SecurityCheck,
         Code = s1Resp.Code,
         Settlement = s1Resp.Settlement,
         Srn = s1Resp.Srn,
         RequestToken = s1Resp.RequestToken,
         AccountType = s1Resp.AccountNumber,
         brokerage = s1Resp.Brokerage,
     });
 }