private static HttpResponse FDDLBuy(HttpRequest request) { if (request.Headers["Pass"].Equals(SystemInfo.PASS)) { DownloadedTodayPlan downloadedInfo = JsonConvert.DeserializeObject <DownloadedTodayPlan>(request.Content); FDDLBuyExecution exe = new FDDLBuyExecution(downloadedInfo.ID, downloadedInfo.StockCode, downloadedInfo.Quantity, downloadedInfo.Price); PlanManager.getFDDLManager().addPlan(exe); exe.run(); return(new HttpResponse() { ReasonPhrase = "OK", StatusCode = "200" }); } return(new HttpResponse() { ReasonPhrase = "Unauth", StatusCode = "401" }); }
public void addPlan(FDDLBuyExecution plan) { m_fddlPlans.Add(plan); }
public FDDLAfterMarketEP(FDDLBuyExecution parent) { m_parent = parent; }