protected override bool setInput() { if (this.setParam("계좌번호", StockEngine.accountNumber()) == false) { return(false); } //비밀번호 = 사용안함(공백) if (this.setParam("비밀번호", " ") == false) { return(false); } //상장폐지조회구분 = 0:전체, 1 : 상장폐지종목제외 if (this.setParam("상장폐지조회구분", "0") == false) { return(false); } //비밀번호입력매체구분 = 00 if (this.setParam("비밀번호입력매체구분", "0000") == false) { return(false); } return(true); }
public override void request() { orderTick_ = DateTime.Now.Ticks; if (tradingCount_ <= 0) { return; } if (this.setInput() == false) { return; } int nRet = StockEngine.getInstance.khOpenApi().SendOrder( requestName_, screenNo_, StockEngine.accountNumber(), dealingType_.code, this.stockCode(), tradingCount_, tradingPrice_, hogaType_.code, orderNumber_); if (Error.IsError(nRet)) { Logger.getInstance.print(Log.API조회, "주식주문:{0}, 주식 코드:{1}, 갯수:{2}, 주문가:{3}, in 계좌:{4}", Error.GetErrorMessage(), this.stockCode(), tradingCount_, tradingPrice_, StockEngine.accountNumber()); } else { Logger.getInstance.print(Log.에러, "주식주문 : " + Error.GetErrorMessage()); } Logger.getInstance.print(Log.API조회, "주문 완료 :{0}, 번호:{1}, 주문:{2}, 호가:{3}, 주식:{4}, 갯수:{5}, 주문가:{6}, 계좌:{7}" , requestName_, screenNo_, dealingType_.name, hogaType_.name, this.stockCode(), tradingCount_, tradingPrice_, StockEngine.accountNumber()); }
protected override bool setInput() { return(this.setParam("계좌번호", StockEngine.accountNumber())); }