tr-opt50024(일별변동성분석그래프요청)
- REQUEST Code
string trCd = "opt50024";
// 역사적변동성1 = 변동성 일수. 30
axKHOpenAPI.SetInputValue("역사적변동성1", "30");
// 역사적변동성2 = 변동성 일수. 60
axKHOpenAPI.SetInputValue("역사적변동성2", "60");
// 역사적변동성3 = 변동성 일수. 100
axKHOpenAPI.SetInputValue("역사적변동성3", "100");
// 기간 = 일수. 60
axKHOpenAPI.SetInputValue("기간", "60");
axKHOpenAPI.CommRqData("RQName", trCd, 0, GetScrNum());
- RESPONSE Code
//TR 조회 요구에 대한 데이터 수신 이벤트
private void axKHOpenAPI_OnReceiveTrData(object sender, AxKHOpenAPILib._DKHOpenAPIEvents_OnReceiveTrDataEvent e) {
switch (e.sTrCode.ToLower()) {
case "opt50024": // 일별변동성분석그래프요청
funcOpt50024(sender, e);
break;
}
}
// 일별변동성분석그래프요청
private void funcOpt50024(object sender, AxKHOpenAPILib._DKHOpenAPIEvents_OnReceiveTrDataEvent e) {
try {
string[] columns = new string[] { "일자", "대표내재변동성", "콜내재변동성", "풋내재변동성", "선물대표내재변동성", "선물콜내재변동성", "선물풋내재변동성", "역사적변동성1", "역사적변동성2", "역사적변동성3", "선물역사적변동성1", "선물역사적변동성2", "선물역사적변동성3", "시작일자" };
List<string[]> list = new List<string[]>();
list.Add(columns);
Console.WriteLine("<!-- Start funcOpt50024 (일별변동성분석그래프요청) -->");
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 funcOpt50024 (일별변동성분석그래프요청) -->");
}
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
일자 | 대표내재변동성 | 콜내재변동성 | 풋내재변동성 | 선물대표내재변동성 | 선물콜내재변동성 | 선물풋내재변동성 | 역사적변동성1 | 역사적변동성2 | 역사적변동성3 | 선물역사적변동성1 | 선물역사적변동성2 | 선물역사적변동성3 | 시작일자 |
20221007 | 21.45 | 18.32 | 24.55 | 21.46 | 17.61 | 25.26 | 21.01 | 17.57 | 19.39 | 22.41 | 18.63 | 20.05 | |
20221006 | 22.57 | 18.65 | 25.55 | 22.56 | 17.83 | 26.14 | 21.18 | 17.59 | 19.52 | 22.57 | 18.64 | 20.16 | |
20221005 | 25.04 | 18.97 | 30.48 | 25.00 | 18.45 | 30.85 | 21.07 | 17.56 | 19.47 | 22.60 | 18.64 | 20.13 | |
20221004 | 26.19 | 20.52 | 31.82 | 26.02 | 19.65 | 32.33 | 20.99 | 18.03 | 19.46 | 22.55 | 19.04 | 20.14 | |
20220930 | 25.30 | 21.43 | 29.44 | 25.38 | 20.91 | 30.15 | 19.25 | 17.80 | 19.07 | 20.71 | 18.68 | 19.68 | |
20220929 | 26.01 | 20.57 | 30.20 | 26.11 | 19.95 | 30.87 | 19.25 | 18.14 | 19.16 | 20.70 | 18.95 | 19.76 | |
20220928 | 24.91 | 21.54 | 28.49 | 24.96 | 21.32 | 28.82 | 19.38 | 18.14 | 19.16 | 20.61 | 18.90 | 19.72 | |
20220927 | 23.23 | 19.34 | 26.18 | 23.30 | 19.04 | 26.53 | 18.64 | 17.62 | 18.85 | 19.72 | 18.24 | 19.35 | |
20220926 | 22.17 | 19.49 | 25.08 | 22.26 | 19.28 | 25.50 | 19.54 | 17.95 | 18.84 | 20.61 | 18.59 | 19.36 | |
20220923 | 19.43 | 16.03 | 22.58 | 19.43 | 16.03 | 22.58 | 18.46 | 17.57 | 18.59 | 19.72 | 18.23 | 19.21 | |
20220922 | 19.44 | 15.88 | 22.86 | 19.43 | 15.92 | 22.81 | 18.30 | 17.52 | 18.61 | 19.70 | 18.21 | 19.28 | |
20220921 | 19.71 | 15.86 | 23.08 | 19.71 | 15.82 | 23.13 | 18.19 | 17.64 | 18.64 | 19.55 | 18.27 | 19.31 | |
20220920 | 19.03 | 15.14 | 22.56 | 19.04 | 15.09 | 22.61 | 18.23 | 18.07 | 18.63 | 19.52 | 18.67 | 19.29 | |
20220919 | 19.14 | 15.46 | 22.74 | 19.14 | 15.45 | 22.76 | 18.27 | 18.14 | 18.80 | 19.58 | 18.72 | 19.45 | |
20220916 | 18.44 | 14.47 | 22.14 | 18.43 | 14.55 | 22.05 | 18.36 | 18.85 | 18.82 | 19.78 | 19.47 | 19.52 | |
20220915 | 19.10 | 14.76 | 22.75 | 19.11 | 14.60 | 22.91 | 18.32 | 18.86 | 18.83 | 19.65 | 19.43 | 19.49 | |
20220914 | 19.08 | 14.70 | 22.58 | 19.10 | 14.58 | 22.71 | 18.25 | 19.14 | 18.81 | 19.65 | 19.68 | 19.48 | |
20220913 | 20.51 | 14.33 | 26.48 | 20.41 | 13.96 | 26.66 | 17.61 | 18.84 | 18.71 | 18.52 | 19.17 | 19.24 | |
20220908 | 16.34 | 14.05 | 18.27 | 15.97 | 13.53 | 18.16 | 15.33 | 17.80 | 18.06 | 15.55 | 17.77 | 18.39 | |
20220907 | 19.12 | 19.69 | 18.57 | 19.04 | 19.75 | 18.36 | 15.29 | 18.14 | 18.10 | 15.51 | 18.07 | 18.46 | |
20220906 | 18.30 | 15.66 | 21.13 | 18.29 | 16.02 | 20.72 | 14.76 | 17.91 | 17.97 | 15.07 | 17.89 | 18.35 | |
20220905 | 19.50 | 16.71 | 22.20 | 19.49 | 16.74 | 22.17 | 14.78 | 19.21 | 18.23 | 15.08 | 19.16 | 18.56 | |
20220902 | 19.30 | 16.26 | 21.94 | 19.24 | 16.39 | 21.71 | 14.91 | 19.37 | 18.28 | 15.01 | 19.27 | 18.60 | |
20220901 | 18.84 | 15.35 | 22.50 | 18.66 | 15.85 | 21.61 | 15.19 | 19.35 | 18.26 | 15.16 | 19.28 | 18.60 | |
20220831 | 17.54 | 11.95 | 23.21 | 17.80 | 13.07 | 22.61 | 13.46 | 18.77 | 17.88 | 14.16 | 18.91 | 18.35 | |
20220830 | 18.60 | 14.23 | 22.86 | 18.60 | 14.26 | 22.84 | 13.18 | 18.91 | 17.91 | 14.28 | 19.20 | 18.44 | |
20220829 | 18.76 | 15.95 | 21.30 | 18.69 | 16.06 | 21.06 | 14.34 | 18.81 | 17.88 | 15.67 | 19.09 | 18.39 | |
20220826 | 16.74 | 13.02 | 19.75 | 16.74 | 12.95 | 19.80 | 12.56 | 18.38 | 17.54 | 13.32 | 18.47 | 17.93 | |
20220825 | 16.86 | 13.24 | 20.62 | 16.83 | 13.09 | 20.71 | 12.67 | 18.43 | 17.57 | 13.44 | 18.49 | 17.96 | |
20220824 | 16.88 | 13.70 | 20.32 | 16.88 | 13.76 | 20.25 | 12.38 | 18.46 | 17.47 | 13.13 | 18.44 | 17.83 | |
20220823 | 17.04 | 14.16 | 20.10 | 17.03 | 14.22 | 20.00 | 12.83 | 18.60 | 17.47 | 13.60 | 18.59 | 17.82 | |
20220822 | 16.09 | 13.63 | 18.58 | 16.08 | 13.66 | 18.53 | 12.36 | 18.46 | 17.38 | 13.15 | 18.45 | 17.74 | |
20220819 | 15.73 | 12.98 | 18.28 | 15.73 | 12.88 | 18.38 | 11.75 | 18.35 | 17.32 | 12.42 | 18.31 | 17.64 | |
20220818 | 15.38 | 12.62 | 18.17 | 15.39 | 12.55 | 18.25 | 12.54 | 18.64 | 17.30 | 13.11 | 18.64 | 17.63 | |
20220817 | 16.22 | 12.65 | 19.35 | 16.23 | 12.51 | 19.49 | 14.29 | 18.66 | 17.30 | 14.69 | 18.65 | 17.63 | |
20220816 | 16.86 | 12.40 | 20.25 | 16.86 | 12.36 | 20.28 | 14.65 | 18.99 | 17.29 | 14.96 | 19.16 | 17.61 | |
20220812 | 19.04 | 12.74 | 23.45 | 19.04 | 12.60 | 23.55 | 14.67 | 19.18 | 17.34 | 14.97 | 19.46 | 17.65 | |
20220811 | 16.06 | 13.03 | 19.12 | 16.12 | 11.27 | 19.78 | 15.14 | 19.18 | 17.39 | 15.28 | 19.46 | 17.69 | |
20220810 | 17.19 | 15.72 | 18.68 | 17.14 | 15.81 | 18.51 | 15.60 | 18.97 | 17.22 | 15.77 | 19.23 | 17.50 | |
20220809 | 16.80 | 13.45 | 19.40 | 16.80 | 13.31 | 19.48 | 16.31 | 18.87 | 17.15 | 16.30 | 19.13 | 17.43 | |
20220808 | 17.79 | 13.71 | 21.21 | 17.79 | 13.93 | 21.03 | 16.47 | 19.41 | 17.32 | 16.37 | 19.70 | 17.61 | |
20220805 | 16.45 | 13.06 | 19.30 | 16.41 | 12.75 | 19.47 | 16.80 | 19.66 | 17.48 | 16.66 | 19.93 | 17.81 | |
20220804 | 17.41 | 13.40 | 21.35 | 17.38 | 13.24 | 21.43 | 17.68 | 19.61 | 17.50 | 17.56 | 19.89 | 17.85 | |
20220803 | 19.04 | 14.54 | 22.37 | 19.04 | 14.32 | 22.53 | 17.91 | 19.59 | 17.48 | 17.73 | 19.89 | 17.83 | |
20220802 | 19.26 | 15.63 | 22.69 | 19.27 | 15.50 | 22.82 | 19.53 | 19.61 | 17.47 | 19.36 | 19.85 | 17.78 | |
20220801 | 18.68 | 15.15 | 21.66 | 18.69 | 14.92 | 21.87 | 19.55 | 19.76 | 17.90 | 19.37 | 20.00 | 18.09 | |
20220729 | 18.01 | 14.17 | 21.23 | 18.00 | 13.93 | 21.40 | 20.25 | 19.77 | 17.96 | 19.97 | 20.01 | 18.20 | |
20220728 | 19.33 | 15.16 | 22.39 | 19.32 | 14.86 | 22.60 | 20.29 | 19.72 | 18.30 | 20.11 | 20.00 | 18.52 | |
20220727 | 19.52 | 16.22 | 22.26 | 19.52 | 16.01 | 22.43 | 20.22 | 19.66 | 18.38 | 19.99 | 19.92 | 18.58 | |
20220726 | 19.45 | 16.16 | 22.69 | 19.42 | 15.87 | 22.92 | 20.86 | 19.91 | 18.62 | 20.57 | 20.24 | 18.81 | |
20220725 | 19.90 | 16.69 | 23.10 | 19.89 | 16.42 | 23.35 | 20.84 | 20.04 | 18.60 | 20.58 | 20.41 | 18.79 | |
20220722 | 19.90 | 16.29 | 23.61 | 19.89 | 16.08 | 23.79 | 22.97 | 20.15 | 18.65 | 22.71 | 20.54 | 18.80 | |
20220721 | 20.94 | 16.34 | 25.50 | 20.94 | 16.31 | 25.52 | 23.15 | 20.16 | 18.70 | 22.91 | 20.58 | 18.95 | |
20220720 | 21.28 | 16.99 | 24.57 | 21.27 | 16.83 | 24.69 | 22.81 | 20.26 | 19.00 | 22.72 | 20.75 | 19.32 | |
20220719 | 22.39 | 16.97 | 27.01 | 22.39 | 16.93 | 27.04 | 22.67 | 20.24 | 18.96 | 22.52 | 20.73 | 19.26 | |
20220718 | 22.92 | 17.36 | 28.11 | 22.89 | 17.22 | 28.18 | 23.06 | 20.28 | 19.05 | 22.94 | 20.76 | 19.35 | |
20220715 | 25.53 | 18.24 | 30.53 | 25.54 | 18.11 | 30.64 | 21.91 | 19.67 | 18.68 | 21.53 | 19.99 | 18.88 | |
20220714 | 18.14 | 17.10 | 19.13 | 18.25 | 16.61 | 19.81 | 21.68 | 19.73 | 18.61 | 21.47 | 20.09 | 18.86 | |
20220713 | 23.24 | 22.17 | 24.38 | 23.12 | 20.88 | 25.47 | 21.89 | 19.73 | 18.65 | 21.60 | 20.11 | 18.92 | |
20220712 | 23.13 | 24.06 | 22.13 | 23.52 | 23.28 | 23.77 | 22.27 | 19.72 | 18.89 | 21.81 | 20.10 | 19.13 | |
20220711 | 23.70 | 22.12 | 25.28 | 23.77 | 21.64 | 25.92 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | |
20220708 | 21.72 | 18.90 | 25.10 | 21.60 | 18.44 | 25.39 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | |
20220707 | 22.20 | 19.58 | 25.41 | 22.12 | 19.16 | 25.74 | 10.29 | 2.61 | 2.61 | 2.61 | 5.17 | 1.49 | |
20220706 | 23.31 | 20.97 | 25.75 | 23.37 | 20.64 | 26.23 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | |
20220705 | 23.18 | 19.31 | 27.11 | 23.06 | 18.71 | 27.47 | -16773605.00 | 19.39 | 22.41 | 18.63 | -16775526.00 | 8421500.00 | |
20220704 | 23.91 | 20.94 | 27.02 | 23.95 | 20.50 | 27.58 | 325.41 | 19.52 | 22.57 | 18.64 | 325.41 | 8755751.00 | |
20220701 | 22.31 | 20.03 | 24.99 | 22.39 | 19.68 | 25.56 | -16773603.00 | 19.47 | 22.60 | 18.64 | -10468700.00 | -16777216.00 | |
20220630 | 22.95 | 20.25 | 25.67 | 22.98 | 20.13 | 25.85 | 325.41 | 19.46 | 22.55 | 19.04 | 0.00 | 325.41 | |
20220629 | 22.32 | 18.56 | 25.55 | 22.35 | 18.36 | 25.78 | 0.00 | 19.07 | 20.71 | 18.68 | 0.00 | -16774628.00 | |
20220628 | 23.26 | 17.79 | 28.67 | 23.29 | 17.95 | 28.55 | 325.41 | 19.16 | 20.70 | 18.95 | 0.00 | 325.41 | |
20220627 | 25.03 | 19.23 | 30.75 | 25.02 | 19.20 | 30.77 | -16773468.00 | 19.16 | 20.61 | 18.90 | 0.00 | 0.00 | |
20220624 | 25.56 | 19.74 | 30.74 | 25.55 | 19.66 | 30.80 | 325.41 | 18.85 | 19.72 | 18.24 | 0.00 | 0.00 | |
20220623 | 25.70 | 20.77 | 29.86 | 25.73 | 20.69 | 29.98 | -16773467.00 | 18.84 | 20.61 | 18.59 | -16775526.00 | 0.00 | |
20220622 | 25.63 | 20.23 | 30.68 | 25.61 | 20.32 | 30.56 | 325.41 | 18.59 | 19.72 | 18.23 | 325.41 | 0.00 | |
20220621 | 24.71 | 18.80 | 29.75 | 24.71 | 18.78 | 29.77 | -16773466.00 | 18.61 | 19.70 | 18.21 | -16775549.00 | 0.00 | |
20220620 | 27.34 | 20.55 | 32.64 | 27.33 | 20.61 | 32.56 | 325.41 | 18.64 | 19.55 | 18.27 | 325.41 | 0.00 | |
20220617 | 24.57 | 18.76 | 30.14 | 24.56 | 18.84 | 30.04 | 13092399.00 | 18.63 | 19.52 | 18.67 | 0.00 | 3.20 | |
20220616 | 24.52 | 17.83 | 29.50 | 24.49 | 17.96 | 29.38 | 325.42 | 18.80 | 19.58 | 18.72 | 0.00 | 0.00 | |
20220615 | 24.50 | 19.19 | 29.07 | 24.49 | 19.30 | 28.95 | 13092399.00 | 18.82 | 19.78 | 19.47 | 0.00 | 0.52 | |
20220614 | 23.66 | 17.99 | 27.96 | 23.63 | 18.10 | 27.82 | 325.42 | 18.83 | 19.65 | 19.43 | 0.00 | 0.00 | |
20220613 | 21.68 | 17.92 | 25.22 | 21.67 | 17.95 | 25.18 | 0.00 | 18.81 | 19.65 | 19.68 | -16775525.00 | -16774627.00 | |
20220610 | 19.48 | 14.47 | 24.12 | 19.46 | 14.63 | 23.94 | 0.03 | 18.71 | 18.52 | 19.17 | 325.41 | 325.41 | |
20220609 | 12.69 | 12.27 | 13.08 | 12.80 | 12.12 | 13.43 | 0.00 | 18.06 | 15.55 | 17.77 | 0.51 | 19525420.00 | |
20220608 | 16.56 | 15.71 | 17.34 | 16.57 | 15.63 | 17.44 | 0.00 | 18.10 | 15.51 | 18.07 | 0.00 | 16682483.00 | |
20220607 | 19.65 | 19.14 | 20.10 | 19.48 | 19.29 | 19.65 | 0.00 | 17.97 | 15.07 | 17.89 | 0.00 | 5444990.50 | |
20220603 | 15.80 | 13.10 | 17.94 | 15.80 | 12.90 | 18.09 | 0.00 | 18.23 | 15.08 | 19.16 | 0.00 | 17524576.00 | |
20220602 | 16.69 | 13.20 | 19.33 | 16.66 | 13.33 | 19.18 | 0.00 | 18.28 | 15.01 | 19.27 | 0.00 | 16350216.00 | |
20220531 | 18.83 | 12.34 | 22.95 | 18.84 | 12.60 | 22.81 | 0.00 | 18.26 | 15.16 | 19.28 | 0.00 | 5444374.00 | |
20220530 | 19.42 | 13.92 | 24.07 | 19.39 | 13.76 | 24.14 | 0.00 | 17.88 | 14.16 | 18.91 | -16775525.00 | 17524596.00 | |
20220527 | 17.99 | 14.05 | 22.15 | 17.98 | 13.99 | 22.20 | 0.00 | 17.91 | 14.28 | 19.20 | 325.41 | 120.64 | |
20220526 | 18.85 | 15.05 | 22.80 | 18.85 | 15.07 | 22.78 | 0.00 | 17.88 | 15.67 | 19.09 | 0.00 | 0.33 | |
20220525 | 19.33 | 15.20 | 23.35 | 19.33 | 15.18 | 23.38 | 0.00 | 17.54 | 13.32 | 18.47 | 0.00 | 0.00 | |
20220524 | 19.99 | 15.76 | 23.58 | 20.00 | 15.72 | 23.62 | 0.00 | 17.57 | 13.44 | 18.49 | 0.00 | -16775434.00 | |
20220523 | 19.83 | 15.65 | 24.56 | 19.81 | 15.55 | 24.63 | 325.41 | 17.47 | 13.13 | 18.44 | 0.00 | 325.41 | |
20220520 | 20.19 | 15.56 | 24.79 | 20.17 | 15.45 | 24.85 | -16772270.00 | 17.47 | 13.60 | 18.59 | 0.00 | -16774625.00 | |
20220519 | 20.19 | 15.59 | 23.94 | 20.17 | 15.66 | 23.86 | 325.41 | 17.38 | 13.15 | 18.45 | 0.00 | 325.41 | |
20220518 | 19.37 | 14.35 | 24.17 | 19.38 | 14.37 | 24.16 | -16772269.00 | 17.32 | 12.42 | 18.31 | -16775525.00 | 4.00 | |
20220517 | 19.73 | 14.94 | 24.01 | 19.73 | 14.90 | 24.04 | 325.41 | 17.30 | 13.11 | 18.64 | 325.41 | 0.00 | |
20220516 | 21.83 | 16.01 | 28.40 | 21.82 | 15.94 | 28.46 | -16772269.00 | 17.30 | 14.69 | 18.65 | 0.00 | 1.49 | |
20220513 | 24.53 | 15.40 | 30.37 | 24.53 | 15.38 | 30.38 | 325.41 | 17.29 | 14.96 | 19.16 | 0.00 | 0.00 |
키움 open-api TR 목록
728x90
댓글