tr-opt10046(체결강도추이시간별요청)
- REQUEST Code
string trStockCd = "005930"; //삼성전자
string trCd = "opt10046";
// 종목코드 = 전문 조회할 종목코드
axKHOpenAPI.SetInputValue("종목코드", trStockCd);
// 틱구분 = 설정값 1
axKHOpenAPI.SetInputValue("틱구분", "1");
// 체결강도구분 = 설정값 1
axKHOpenAPI.SetInputValue("체결강도구분", "1");
axKHOpenAPI.CommRqData("RQName", trCd, 0, GetScrNum());
- RESPONSE Code
//TR 조회 요구에 대한 데이터 수신 이벤트
private void axKHOpenAPI_OnReceiveTrData(object sender, AxKHOpenAPILib._DKHOpenAPIEvents_OnReceiveTrDataEvent e) {
switch (e.sTrCode.ToLower()) {
case "opt10046": // 체결강도추이시간별요청
funcOpt10046(sender, e);
break;
}
}
// 체결강도추이시간별요청
private void funcOpt10046(object sender, AxKHOpenAPILib._DKHOpenAPIEvents_OnReceiveTrDataEvent e) {
try {
string[] columns = new string[] { "체결시간", "현재가", "전일대비", "전일대비기호", "등락율", "거래량", "누적거래대금", "누적거래량", "체결강도", "체결강도5분", "체결강도20분", "체결강도60분" };
List<string[]> list = new List<string[]>();
list.Add(columns);
Console.WriteLine("<!-- Start funcOpt10046 (체결강도추이시간별요청) -->");
int nCnt = axKHOpenAPI.GetRepeatCnt(e.sTrCode, e.sRQName);
for (int ni = 0; ni < nCnt; ni++) {
string[] row = new string[columns.Length];
for (int i = 0; i < columns.Length; i++) {
row[i] = axKHOpenAPI.GetCommData(e.sTrCode, e.sRQName, ni, columns[i]).Trim();
}
list.Add(row);
}
PrintHtmlTable(list);
Console.WriteLine("<!-- End funcOpt10046 (체결강도추이시간별요청) -->");
}
catch (Exception e1) {
Console.WriteLine(e1.StackTrace);
}
}
public void PrintHtmlTable(List<string[]> list) {
string table = "<table>\r\n";
for (int i = 0; i < list.Count; i++) {
table +="<tr>";
for (int j = 0; j < list[i].Length; j++) {
table += string.Format("<td>{0}</td>", list[i][j]);
}
table +="</tr>\r\n";
}
table +="</table>";
Console.WriteLine(table);
tbLog.Text = table;
}
- RESPONSE Data Sample
체결시간 | 현재가 | 전일대비 | 전일대비기호 | 등락율 | 거래량 | 누적거래대금 | 누적거래량 | 체결강도 | 체결강도5분 | 체결강도20분 | 체결강도60분 |
155900 | -56200 | -100 | 5 | -0.18 | 139 | 894158 | 15907472 | 97.87 | 97.88 | 97.94 | 99.31 |
155800 | -56200 | -100 | 5 | -0.18 | 22 | 894150 | 15907333 | 97.86 | 97.88 | 97.96 | 99.36 |
155700 | -56200 | -100 | 5 | -0.18 | 2493 | 894149 | 15907311 | 97.86 | 97.89 | 97.97 | 99.40 |
155600 | -56200 | -100 | 5 | -0.18 | 354 | 894009 | 15904818 | 97.89 | 97.90 | 97.99 | 99.45 |
155500 | -56200 | -100 | 5 | -0.18 | 112 | 893989 | 15904464 | 97.90 | 97.90 | 98.01 | 99.49 |
155400 | -56200 | -100 | 5 | -0.18 | 226 | 893982 | 15904352 | 97.90 | 97.91 | 98.03 | 99.53 |
155300 | -56200 | -100 | 5 | -0.18 | 474 | 893970 | 15904126 | 97.90 | 97.91 | 98.06 | 99.58 |
155200 | -56200 | -100 | 5 | -0.18 | 7 | 893943 | 15903652 | 97.91 | 97.91 | 98.11 | 99.62 |
155100 | -56200 | -100 | 5 | -0.18 | 42 | 893943 | 15903645 | 97.91 | 97.91 | 98.15 | 99.66 |
155000 | -56200 | -100 | 5 | -0.18 | 37 | 893940 | 15903603 | 97.91 | 97.91 | 98.24 | 99.69 |
154900 | -56200 | -100 | 5 | -0.18 | 64 | 893938 | 15903566 | 97.91 | 97.92 | 98.32 | 99.73 |
154800 | -56200 | -100 | 5 | -0.18 | 107 | 893935 | 15903502 | 97.91 | 97.95 | 98.39 | 99.77 |
154700 | -56200 | -100 | 5 | -0.18 | 779 | 893929 | 15903395 | 97.91 | 97.98 | 98.47 | 99.81 |
154600 | -56200 | -100 | 5 | -0.18 | 258 | 893885 | 15902616 | 97.92 | 98.01 | 98.55 | 99.82 |
154500 | -56200 | -100 | 5 | -0.18 | 9999 | 893870 | 15902358 | 97.93 | 98.04 | 98.64 | 99.84 |
154400 | -56200 | -100 | 5 | -0.18 | 221 | 893308 | 15892359 | 98.06 | 98.08 | 98.73 | 99.85 |
154300 | -56200 | -100 | 5 | -0.18 | 818 | 893296 | 15892138 | 98.06 | 98.09 | 98.81 | 99.86 |
154200 | -56200 | -100 | 5 | -0.18 | 1056 | 893250 | 15891320 | 98.07 | 98.09 | 98.89 | 99.87 |
154100 | -56200 | -100 | 5 | -0.18 | 236 | 893191 | 15890264 | 98.09 | 98.14 | 98.98 | 99.87 |
154000 | -56200 | -100 | 5 | -0.18 | 22394 | 893177 | 15890028 | 98.09 | 98.17 | 99.13 | 99.88 |
153000 | -56200 | -100 | 5 | -0.18 | 1128430 | 891919 | 15867634 | 98.11 | 98.23 | 99.29 | 99.89 |
151900 | +56500 | +200 | 2 | +0.36 | 28832 | 828501 | 14739204 | 98.11 | 98.32 | 99.44 | 99.90 |
151800 | +56500 | +200 | 2 | +0.36 | 13600 | 826872 | 14710372 | 98.28 | 98.45 | 99.58 | 99.90 |
151700 | +56600 | +300 | 2 | +0.53 | 35760 | 826103 | 14696772 | 98.26 | 98.55 | 99.77 | 99.90 |
151600 | +56500 | +200 | 2 | +0.36 | 22351 | 824083 | 14661012 | 98.38 | 98.83 | 99.96 | 99.90 |
151500 | +56500 | +200 | 2 | +0.36 | 51597 | 822822 | 14638661 | 98.55 | 99.05 | 100.08 | 99.90 |
151400 | +56500 | +200 | 2 | +0.36 | 5680 | 819906 | 14587064 | 98.79 | 99.23 | 100.18 | 99.89 |
151300 | +56400 | +100 | 2 | +0.18 | 72996 | 819586 | 14581384 | 98.77 | 99.36 | 100.27 | 99.87 |
151200 | +56600 | +300 | 2 | +0.53 | 17987 | 815461 | 14508388 | 99.66 | 99.51 | 100.36 | 99.85 |
151100 | +56500 | +200 | 2 | +0.36 | 5690 | 814443 | 14490401 | 99.47 | 99.52 | 100.41 | 99.82 |
151000 | +56600 | +300 | 2 | +0.53 | 7988 | 814121 | 14484711 | 99.45 | 99.57 | 100.46 | 99.78 |
150900 | +56600 | +300 | 2 | +0.53 | 9524 | 813670 | 14476723 | 99.46 | 99.62 | 100.51 | 99.75 |
150800 | +56600 | +300 | 2 | +0.53 | 17102 | 813131 | 14467199 | 99.51 | 99.64 | 100.56 | 99.72 |
150700 | +56600 | +300 | 2 | +0.53 | 5527 | 812165 | 14450097 | 99.70 | 99.71 | 100.61 | 99.69 |
150600 | +56600 | +300 | 2 | +0.53 | 18728 | 811852 | 14444570 | 99.71 | 100.00 | 100.64 | 99.65 |
150500 | +56500 | +200 | 2 | +0.36 | 30802 | 810794 | 14425842 | 99.71 | 100.30 | 100.65 | 99.62 |
150400 | +56500 | +200 | 2 | +0.36 | 24544 | 809054 | 14395040 | 99.58 | 100.60 | 100.64 | 99.57 |
150300 | +56500 | +200 | 2 | +0.36 | 98314 | 807667 | 14370496 | 99.87 | 100.88 | 100.69 | 99.52 |
150200 | +56500 | +200 | 2 | +0.36 | 11707 | 802112 | 14272182 | 101.14 | 101.30 | 100.74 | 99.47 |
150100 | +56600 | +300 | 2 | +0.53 | 5909 | 801450 | 14260475 | 101.22 | 101.47 | 100.73 | 99.39 |
150000 | +56600 | +300 | 2 | +0.53 | 28645 | 801116 | 14254566 | 101.21 | 101.38 | 100.70 | 99.31 |
145900 | +56600 | +300 | 2 | +0.53 | 100822 | 799495 | 14225921 | 100.96 | 101.26 | 100.68 | 99.22 |
145800 | +56700 | +400 | 2 | +0.71 | 7590 | 793788 | 14125099 | 101.98 | 101.19 | 100.66 | 99.13 |
145700 | +56700 | +400 | 2 | +0.71 | 89217 | 793358 | 14117509 | 101.98 | 100.92 | 100.59 | 99.06 |
145600 | +56600 | +300 | 2 | +0.53 | 36905 | 788308 | 14028292 | 100.77 | 100.65 | 100.51 | 98.98 |
145500 | +56500 | +200 | 2 | +0.36 | 9346 | 786220 | 13991387 | 100.62 | 100.59 | 100.50 | 98.93 |
145400 | +56500 | +200 | 2 | +0.36 | 9776 | 785692 | 13982041 | 100.61 | 100.56 | 100.48 | 98.88 |
145300 | +56600 | +300 | 2 | +0.53 | 7881 | 785139 | 13972265 | 100.63 | 100.53 | 100.47 | 98.83 |
145200 | +56600 | +300 | 2 | +0.53 | 20106 | 784693 | 13964384 | 100.63 | 100.48 | 100.45 | 98.77 |
145100 | +56600 | +300 | 2 | +0.53 | 7965 | 783556 | 13944278 | 100.48 | 100.43 | 100.43 | 98.70 |
145000 | +56600 | +300 | 2 | +0.53 | 7872 | 783105 | 13936313 | 100.45 | 100.30 | 100.42 | 98.64 |
144900 | +56600 | +300 | 2 | +0.53 | 7925 | 782660 | 13928441 | 100.44 | 100.12 | 100.41 | 98.57 |
144800 | +56600 | +300 | 2 | +0.53 | 8016 | 782212 | 13920516 | 100.41 | 100.16 | 100.39 | 98.54 |
144700 | +56600 | +300 | 2 | +0.53 | 50001 | 781758 | 13912500 | 100.40 | 100.27 | 100.31 | 98.51 |
144600 | +56400 | +100 | 2 | +0.18 | 25839 | 778933 | 13862499 | 99.82 | 100.35 | 100.23 | 98.48 |
144500 | +56500 | +200 | 2 | +0.36 | 86749 | 777474 | 13836660 | 99.56 | 100.54 | 100.17 | 98.46 |
144400 | +56600 | +300 | 2 | +0.53 | 50062 | 772572 | 13749911 | 100.63 | 100.77 | 100.13 | 98.45 |
144300 | +56600 | +300 | 2 | +0.53 | 13659 | 769742 | 13699849 | 100.92 | 100.75 | 100.02 | 98.46 |
144200 | +56600 | +300 | 2 | +0.53 | 10590 | 768969 | 13686190 | 100.82 | 100.67 | 99.90 | 98.46 |
144100 | +56600 | +300 | 2 | +0.53 | 9232 | 768370 | 13675600 | 100.78 | 100.60 | 99.79 | 98.52 |
키움 open-api TR 목록
728x90
댓글