Example #1
0
        static KOACode()
        {
            // 주문타입 설정
            orderType[0] = new OrderType(1, "신규매수");
            orderType[1] = new OrderType(2, "신규매도");
            orderType[2] = new OrderType(3, "매수취소");
            orderType[3] = new OrderType(4, "매도취소");
            orderType[4] = new OrderType(5, "매수정정");
            orderType[5] = new OrderType(6, "매도정정");

            // 호가타입 설정
            hogaGb[0]  = new HogaGb("00", "지정가");
            hogaGb[1]  = new HogaGb("03", "시장가");
            hogaGb[2]  = new HogaGb("05", "조건부지정가");
            hogaGb[3]  = new HogaGb("06", "최유리지정가");
            hogaGb[4]  = new HogaGb("07", "최우선지정가");
            hogaGb[5]  = new HogaGb("10", "지정가IOC");
            hogaGb[6]  = new HogaGb("13", "시장가IOC");
            hogaGb[7]  = new HogaGb("16", "최유리IOC");
            hogaGb[8]  = new HogaGb("20", "지정가FOK");
            hogaGb[9]  = new HogaGb("23", "시장가FOK");
            hogaGb[10] = new HogaGb("26", "최유리FOK");
            hogaGb[11] = new HogaGb("61", "시간외단일가매매");
            hogaGb[12] = new HogaGb("81", "시간외종가");

            // 마켓코드 설정
            marketCode[0] = new MarketCode("0", "장내");
            marketCode[1] = new MarketCode("3", "ELW");
            marketCode[2] = new MarketCode("4", "뮤추얼펀드");
            marketCode[3] = new MarketCode("5", "신주인수권");
            marketCode[4] = new MarketCode("6", "리츠");
            marketCode[5] = new MarketCode("8", "ETF");
            marketCode[6] = new MarketCode("9", "하이일드펀드");
            marketCode[7] = new MarketCode("10", "코스닥");
            marketCode[8] = new MarketCode("30", "제3시장");

            // 요청구분 설정
            reqGb[0]  = new ReqGb("90", "타이머시작");
            reqGb[1]  = new ReqGb("00", "직전영업일상한가풀조회");
            reqGb[2]  = new ReqGb("01", "쌍매수풀조회");
            reqGb[3]  = new ReqGb("10", "근접시초가조회");
            reqGb[4]  = new ReqGb("11", "매수비율계산");
            reqGb[5]  = new ReqGb("12", "자동추매풀조회");
            reqGb[6]  = new ReqGb("13", "종목마스터최신화");
            reqGb[7]  = new ReqGb("91", "가격지표");
            reqGb[8]  = new ReqGb("20", "풀추적");
            reqGb[9]  = new ReqGb("99", "테스트");
            reqGb[10] = new ReqGb("92", "종목별투자자조회");
            reqGb[11] = new ReqGb("93", "종합주가지수조회");
        }
Example #2
0
        static KOACode()
        {
            // 주문타입 설정(6개)
            orderType[0] = new OrderType(1, "신규매수");
            orderType[1] = new OrderType(2, "신규매도");
            orderType[2] = new OrderType(3, "매수취소");
            orderType[3] = new OrderType(4, "매도취소");
            orderType[4] = new OrderType(5, "매수정정");
            orderType[5] = new OrderType(6, "매도정정");

            // 호가타입 설정 (14개)
            hogaGb[0]  = new HogaGb("00", "지정가");
            hogaGb[1]  = new HogaGb("03", "시장가");
            hogaGb[2]  = new HogaGb("05", "조건부지정가");
            hogaGb[3]  = new HogaGb("06", "최유리지정가");
            hogaGb[4]  = new HogaGb("07", "최우선지정가");
            hogaGb[5]  = new HogaGb("10", "지정가IOC");
            hogaGb[6]  = new HogaGb("13", "시장가IOC");
            hogaGb[7]  = new HogaGb("16", "최유리IOC");
            hogaGb[8]  = new HogaGb("20", "지정가FOK");
            hogaGb[9]  = new HogaGb("23", "시장가FOK");
            hogaGb[10] = new HogaGb("26", "최유리FOK");
            hogaGb[11] = new HogaGb("61", "장개시전시간외");                                        // 샘플 수정
            hogaGb[12] = new HogaGb("62", "시간외단일가매매");                                       // 샘플 수정
            hogaGb[13] = new HogaGb("81", "시간외종가");

            // 마켓코드 설정
            marketCode[0] = new MarketCode("0", "장내");
            marketCode[1] = new MarketCode("3", "ELW");
            marketCode[2] = new MarketCode("4", "뮤추얼펀드");
            marketCode[3] = new MarketCode("5", "신주인수권");
            marketCode[4] = new MarketCode("6", "리츠");
            marketCode[5] = new MarketCode("8", "ETF");
            marketCode[6] = new MarketCode("9", "하이일드펀드");
            marketCode[7] = new MarketCode("10", "코스닥");
            marketCode[8] = new MarketCode("30", "제3시장");
        }
Example #3
0
        static KOACode()
        {
            // 주문타입 설정
            orderType[0] = new OrderType(1, "신규매수");
            orderType[1] = new OrderType(2, "신규매도");
            orderType[2] = new OrderType(3, "매수취소");
            orderType[3] = new OrderType(4, "매도취소");
            orderType[4] = new OrderType(5, "매수정정");
            orderType[5] = new OrderType(6, "매도정정");

            // 호가타입 설정
            hogaGb[0] = new HogaGb("00", "지정가");
            hogaGb[1] = new HogaGb("03", "시장가");
            hogaGb[2] = new HogaGb("05", "조건부지정가");
            hogaGb[3] = new HogaGb("06", "최유리지정가");
            hogaGb[4] = new HogaGb("07", "최우선지정가");
            hogaGb[5] = new HogaGb("10", "지정가IOC");
            hogaGb[6] = new HogaGb("13", "시장가IOC");
            hogaGb[7] = new HogaGb("16", "최유리IOC");
            hogaGb[8] = new HogaGb("20", "지정가FOK");
            hogaGb[9] = new HogaGb("23", "시장가FOK");
            hogaGb[10] = new HogaGb("26", "최유리FOK");
            hogaGb[11] = new HogaGb("61", "시간외단일가매매");
            hogaGb[12] = new HogaGb("81", "시간외종가");

            // 마켓코드 설정
            marketCode[0] = new MarketCode("0", "장내");
            marketCode[1] = new MarketCode("3", "ELW");
            marketCode[2] = new MarketCode("4", "뮤추얼펀드");
            marketCode[3] = new MarketCode("5", "신주인수권");
            marketCode[4] = new MarketCode("6", "리츠");
            marketCode[5] = new MarketCode("8", "ETF");
            marketCode[6] = new MarketCode("9", "하이일드펀드");
            marketCode[7] = new MarketCode("10", "코스닥");
            marketCode[8] = new MarketCode("30", "제3시장");
        }