tr-opw20015(옵션매도주문증거금현황요청)
- REQUEST Code
string trCd = "opw20015";
// 월물구분 = 결제월(YYYYMM 연도4자리, 월 2자리)
axKHOpenAPI.SetInputValue("월물구분", "202210");
// 클래스구분 = 01:KOSPI200, 11:삼성전자, 13:POSCO, 15:한국전력, 16:현대차, 19:기아차, 24:LG전자, 40:하나금융지주, 45:LGD, 46:KB금융, 50:SK하이닉스, 75:미국달러
axKHOpenAPI.SetInputValue("클래스구분", "01");
axKHOpenAPI.CommRqData("RQName", trCd, 0, GetScrNum());
- RESPONSE Code
//TR 조회 요구에 대한 데이터 수신 이벤트
private void axKHOpenAPI_OnReceiveTrData(object sender, AxKHOpenAPILib._DKHOpenAPIEvents_OnReceiveTrDataEvent e) {
switch (e.sTrCode.ToLower()) {
case "opw20015": // 옵션매도주문증거금현황요청
funcOpw20015(sender, e);
break;
}
}
// 옵션매도주문증거금현황요청
private void funcOpw20015(object sender, AxKHOpenAPILib._DKHOpenAPIEvents_OnReceiveTrDataEvent e) {
try {
string[] columns = new string[] { "콜조정이론가", "콜최대이론가", "콜전일종가", "콜주문증거금", "행사가격", "풋주문증거금", "풋전일종가", "풋최대이론가", "풋조정이론가" };
List<string[]> list = new List<string[]>();
list.Add(columns);
Console.WriteLine("<!-- Start funcOpw20015 (옵션매도주문증거금현황요청) -->");
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 funcOpw20015 (옵션매도주문증거금현황요청) -->");
}
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
콜조정이론가 | 콜최대이론가 | 콜전일종가 | 콜주문증거금 | 행사가격 | 풋주문증거금 | 풋전일종가 | 풋최대이론가 | 풋조정이론가 |
000000000000 | 000000000000 | 000000000001 | 000000000250000 | 000000048000 | 000000007005510 | 000000018715 | 000215172038 | 000241822328 |
000000000000 | 000000000000 | 000000000001 | 000000000250000 | 000000047750 | 000000006680794 | 000000018595 | 000212673175 | 000239323465 |
000000000000 | 000000000000 | 000000000001 | 000000000250000 | 000000047500 | 000000006681078 | 000000018345 | 000210174312 | 000236824602 |
000000000000 | 000000000000 | 000000000001 | 000000000250000 | 000000047250 | 000000006681362 | 000000018095 | 000207675448 | 000234325738 |
000000000000 | 000000000000 | 000000000001 | 000000000250000 | 000000047000 | 000000006681646 | 000000017845 | 000205176585 | 000231826875 |
000000000000 | 000000000000 | 000000000001 | 000000000250000 | 000000046750 | 000000006681931 | 000000017595 | 000202677722 | 000229328012 |
000000000000 | 000000000001 | 000000000001 | 000000000250000 | 000000046500 | 000000006682215 | 000000017345 | 000200178859 | 000226829149 |
000000000000 | 000000000001 | 000000000001 | 000000000250000 | 000000046250 | 000000006682499 | 000000017095 | 000197679995 | 000224330285 |
000000000001 | 000000000001 | 000000000001 | 000000000250000 | 000000046000 | 000000006682783 | 000000016845 | 000195181132 | 000221831422 |
000000000001 | 000000000002 | 000000000001 | 000000000250000 | 000000045750 | 000000006683067 | 000000016595 | 000192682269 | 000219332559 |
000000000002 | 000000000004 | 000000000001 | 000000000250000 | 000000045500 | 000000006683352 | 000000016345 | 000190183406 | 000216833696 |
000000000004 | 000000000006 | 000000000001 | 000000000250000 | 000000045250 | 000000006683636 | 000000016095 | 000187684542 | 000214334832 |
000000000007 | 000000000008 | 000000000001 | 000000000250000 | 000000045000 | 000000006683920 | 000000015845 | 000185185679 | 000211835969 |
000000000011 | 000000000010 | 000000000001 | 000000000250000 | 000000044750 | 000000006684204 | 000000015595 | 000182686816 | 000209337106 |
000000000021 | 000000000020 | 000000000001 | 000000000250000 | 000000044500 | 000000006684488 | 000000015345 | 000180187952 | 000206838242 |
000000000032 | 000000000030 | 000000000001 | 000000000250000 | 000000044250 | 000000006684772 | 000000015095 | 000177689089 | 000204339379 |
000000000050 | 000000000040 | 000000000001 | 000000000250000 | 000000044000 | 000000006685057 | 000000014845 | 000175190226 | 000201840516 |
000000000094 | 000000000051 | 000000000001 | 000000000250000 | 000000043750 | 000000006685341 | 000000014595 | 000172691363 | 000199341653 |
000000000138 | 000000000093 | 000000000001 | 000000000250000 | 000000043500 | 000000006685625 | 000000014345 | 000170192499 | 000196842789 |
000000000214 | 000000000135 | 000000000001 | 000000000250000 | 000000043250 | 000000006685909 | 000000014095 | 000167693636 | 000194343926 |
000000000376 | 000000000177 | 000000000001 | 000000000250000 | 000000043000 | 000000006686193 | 000000013845 | 000165194773 | 000191845063 |
000000000539 | 000000000245 | 000000000001 | 000000000250000 | 000000042750 | 000000006686478 | 000000013595 | 000162695910 | 000189346200 |
000000000837 | 000000000401 | 000000000001 | 000000000250000 | 000000042500 | 000000006686762 | 000000013345 | 000160197046 | 000186847336 |
000000001378 | 000000000557 | 000000000001 | 000000000250000 | 000000042250 | 000000006687046 | 000000013095 | 000157698183 | 000184348473 |
000000001919 | 000000000712 | 000000000001 | 000000000250000 | 000000042000 | 000000006687330 | 000000012845 | 000155199320 | 000181849610 |
000000002997 | 000000001050 | 000000000001 | 000000000250000 | 000000041750 | 000000006687614 | 000000012595 | 000152700456 | 000179350746 |
000000004622 | 000000001570 | 000000000001 | 000000000250000 | 000000041500 | 000000006675398 | 000000012350 | 000150201593 | 000176851883 |
000000006247 | 000000002091 | 000000000001 | 000000000250000 | 000000041250 | 000000006675683 | 000000012100 | 000147702730 | 000174353020 |
000000009777 | 000000002611 | 000000000001 | 000000000250000 | 000000041000 | 000000006675967 | 000000011850 | 000145203867 | 000171854157 |
000000014208 | 000000004019 | 000000000001 | 000000000250000 | 000000040750 | 000000006676251 | 000000011600 | 000142705003 | 000169355293 |
000000018638 | 000000005585 | 000000000001 | 000000000250000 | 000000040500 | 000000006676535 | 000000011350 | 000140206140 | 000166856430 |
000000029066 | 000000007152 | 000000000001 | 000000000250000 | 000000040250 | 000000006676819 | 000000011100 | 000137707277 | 000164357567 |
000000040083 | 000000009471 | 000000000001 | 000000000250000 | 000000040000 | 000000006677104 | 000000010850 | 000135208414 | 000161858704 |
000000053758 | 000000013753 | 000000000001 | 000000000250000 | 000000039750 | 000000006677388 | 000000010600 | 000132709550 | 000159359840 |
000000078860 | 000000018036 | 000000000001 | 000000000250000 | 000000039500 | 000000006677672 | 000000010350 | 000130210687 | 000156860977 |
000000103962 | 000000022318 | 000000000001 | 000000000250000 | 000000039250 | 000000006677956 | 000000010100 | 000127711824 | 000154362114 |
000000143166 | 000000031610 | 000000000001 | 000000000250000 | 000000039000 | 000000006678240 | 000000009850 | 000125212960 | 000151863250 |
000000195782 | 000000042289 | 000000000001 | 000000000250000 | 000000038750 | 000000006678524 | 000000009600 | 000122714097 | 000149364387 |
000000248398 | 000000052969 | 000000000001 | 000000000250000 | 000000038500 | 000000006678809 | 000000009350 | 000120215234 | 000146865524 |
000000344395 | 000000068661 | 000000000001 | 000000000250000 | 000000038250 | 000000006679093 | 000000009100 | 000117716371 | 000144366661 |
000000446233 | 000000093061 | 000000000001 | 000000000250000 | 000000038000 | 000000006679377 | 000000008850 | 000115217507 | 000141867797 |
000000571863 | 000000117461 | 000000000001 | 000000000250000 | 000000037750 | 000000006679661 | 000000008600 | 000112718644 | 000139368934 |
000000754518 | 000000142454 | 000000000001 | 000000000250000 | 000000037500 | 000000006679945 | 000000008350 | 000110219781 | 000136870071 |
000000937172 | 000000193738 | 000000000001 | 000000000250000 | 000000037250 | 000000006680230 | 000000008100 | 000107720918 | 000134371208 |
000001211432 | 000000245022 | 000000000001 | 000000000250000 | 000000037000 | 000000006680514 | 000000007850 | 000105222054 | 000131872344 |
000001516076 | 000000296306 | 000000000001 | 000000000250000 | 000000036750 | 000000006680798 | 000000007600 | 000102723191 | 000129373481 |
000001863140 | 000000383853 | 000000000001 | 000000000250000 | 000000036500 | 000000006681082 | 000000007350 | 000100224328 | 000126874618 |
000002146778 | 000000405184 | 000000000001 | 000000000250000 | 000000036250 | 000000006681366 | 000000007100 | 000097725464 | 000124375754 |
000002432000 | 000000427082 | 000000000001 | 000000000250000 | 000000036000 | 000000006681650 | 000000006850 | 000095226601 | 000121876891 |
000002805479 | 000000464154 | 000000000001 | 000000000250000 | 000000035750 | 000000006681935 | 000000006600 | 000092727738 | 000119378028 |
000003312130 | 000000501707 | 000000000001 | 000000000250000 | 000000035500 | 000000007307219 | 000000006100 | 000090228875 | 000116879165 |
000003820481 | 000000544721 | 000000000001 | 000000000285786 | 000000035250 | 000000006682503 | 000000006100 | 000087730011 | 000114380301 |
000004526455 | 000000627409 | 000000000001 | 000000000338734 | 000000035000 | 000000006682787 | 000000005850 | 000085231148 | 000111881438 |
000005271453 | 000000710888 | 000000000001 | 000000000394609 | 000000034750 | 000000006670688 | 000000005605 | 000082732750 | 000109382575 |
000006149714 | 000000761577 | 000000000001 | 000000000460479 | 000000034500 | 000000006489465 | 000000005430 | 000080257860 | 000106883712 |
000007096697 | 000000813332 | 000000000001 | 000000000531502 | 000000034250 | 000000006635436 | 000000005120 | 000077741745 | 000104384848 |
000008331478 | 000000897534 | 000000000001 | 000000000624111 | 000000034000 | 000000007059261 | 000000004700 | 000075237042 | 000101885985 |
000009754973 | 000001047000 | 000000000001 | 000000000730873 | 000000033750 | 000000006984676 | 000000004480 | 000072738703 | 000099387122 |
000011380299 | 000001208313 | 000000000001 | 000000000852772 | 000000033500 | 000000007059492 | 000000004200 | 000070237969 | 000096888258 |
000013195044 | 000001374810 | 000000000001 | 000000000988878 | 000000033250 | 000000006672277 | 000000004105 | 000067739106 | 000094389395 |
000015228235 | 000001613583 | 000000000001 | 000000001141368 | 000000033000 | 000000006685061 | 000000003850 | 000065240245 | 000091890532 |
000017458666 | 000001924484 | 000000000001 | 000000001308650 | 000000032750 | 000000006672847 | 000000003605 | 000062741387 | 000089391669 |
000019813816 | 000002408057 | 000000000001 | 000000001485286 | 000000032500 | 000000006723134 | 000000003335 | 000060242535 | 000086892805 |
000022238888 | 000002865583 | 000000000001 | 000000001667167 | 000000032250 | 000000007085925 | 000000002940 | 000057743699 | 000084393942 |
000024714377 | 000003641125 | 000000000001 | 000000001852828 | 000000032000 | 000000006612146 | 000000002880 | 000055248583 | 000081895079 |
000027206048 | 000004485049 | 000000000001 | 000000002039704 | 000000031750 | 000000006787867 | 000000002560 | 000052751469 | 000079396216 |
000029704003 | 000005816707 | 000000000002 | 000000002226300 | 000000031500 | 000000006737446 | 000000002330 | 000050249783 | 000076897352 |
000032202687 | 000007288945 | 000000000003 | 000000002412952 | 000000031250 | 000000006688140 | 000000002100 | 000047752561 | 000074398489 |
000034701535 | 000008980149 | 000000000004 | 000000002599615 | 000000031000 | 000000006624836 | 000000001875 | 000045249344 | 000071899626 |
000037200398 | 000011058403 | 000000000008 | 000000002784030 | 000000030750 | 000000006725152 | 000000001585 | 000042750608 | 000069400762 |
000039699261 | 000013306707 | 000000000016 | 000000003286677 | 000000030500 | 000000006675402 | 000000001355 | 000040251609 | 000066901899 |
000042198124 | 000015665237 | 000000000031 | 000000003838809 | 000000030250 | 000000006575688 | 000000001145 | 000037752750 | 000064403036 |
000044696987 | 000018098248 | 000000000058 | 000000004379562 | 000000030000 | 000000006500975 | 000000000925 | 000035253901 | 000061904173 |
000047195851 | 000020564770 | 000000000102 | 000000004886193 | 000000029750 | 000000006388767 | 000000000720 | 000032755067 | 000059405309 |
000049694714 | 000023052873 | 000000000173 | 000000005330718 | 000000029500 | 000000006211585 | 000000000541 | 000030256340 | 000056906446 |
000052193577 | 000025547101 | 000000000274 | 000000005701775 | 000000029250 | 000000005964483 | 000000000390 | 000027757932 | 000054407583 |
000054692440 | 000028043873 | 000000000406 | 000000005995968 | 000000029000 | 000000005635246 | 000000000272 | 000025260982 | 000051908720 |
000057191304 | 000030541608 | 000000000568 | 000000006215402 | 000000028750 | 000000005232207 | 000000000184 | 000022768826 | 000049409856 |
000059690167 | 000033040041 | 000000000749 | 000000006387510 | 000000028500 | 000000004772419 | 000000000120 | 000020289677 | 000046910993 |
000062189030 | 000035538798 | 000000000956 | 000000006494700 | 000000028250 | 000000004268798 | 000000000076 | 000017835193 | 000044412130 |
000064687894 | 000038037835 | 000000001205 | 000000006496959 | 000000028000 | 000000003741965 | 000000000046 | 000015427859 | 000041913266 |
000067186757 | 000040536467 | 000000001540 | 000000006284117 | 000000027750 | 000000003207352 | 000000000030 | 000013129408 | 000039414403 |
000069685620 | 000043035330 | 000000001650 | 000000006633833 | 000000027500 | 000000002754416 | 000000000019 | 000010975960 | 000036915540 |
000072184483 | 000045534193 | 000000002000 | 000000006383548 | 000000027250 | 000000002571501 | 000000000013 | 000009059316 | 000034416678 |
000074683347 | 000048033057 | 000000002135 | 000000006670764 | 000000027000 | 000000002386338 | 000000000010 | 000007415384 | 000031917834 |
000077182210 | 000050531920 | 000000002395 | 000000006645480 | 000000026750 | 000000002201933 | 000000000006 | 000005918143 | 000029419112 |
000079681073 | 000053030783 | 000000002640 | 000000006657696 | 000000026500 | 000000002014662 | 000000000006 | 000004930383 | 000026922166 |
000082179936 | 000055529646 | 000000002895 | 000000006644912 | 000000026250 | 000000001829102 | 000000000004 | 000003806554 | 000024428032 |
000084678800 | 000058028510 | 000000003145 | 000000006644628 | 000000026000 | 000000001643932 | 000000000003 | 000003069766 | 000021949087 |
000087177663 | 000060527373 | 000000003390 | 000000006656843 | 000000025750 | 000000001460290 | 000000000002 | 000002353947 | 000019490535 |
000089676526 | 000063026236 | 000000003640 | 000000006656559 | 000000025500 | 000000001282232 | 000000000002 | 000001938092 | 000017116427 |
000092175390 | 000065525100 | 000000003890 | 000000006656275 | 000000025250 | 000000001106470 | 000000000001 | 000001414893 | 000014762938 |
000094674253 | 000068023963 | 000000004140 | 000000006655991 | 000000025000 | 000000000945952 | 000000000001 | 000001155852 | 000012622699 |
000097173116 | 000070522826 | 000000004390 | 000000006655707 | 000000024750 | 000000000800155 | 000000000001 | 000001005845 | 000010678735 |
000099671979 | 000073021690 | 000000004640 | 000000006655423 | 000000024500 | 000000000669947 | 000000000001 | 000000845773 | 000008942620 |
000102170843 | 000075520553 | 000000004890 | 000000006655138 | 000000024250 | 000000000556234 | 000000000001 | 000000716402 | 000007426457 |
000104669706 | 000078019418 | 000000005140 | 000000006654855 | 000000024000 | 000000000462110 | 000000000001 | 000000663414 | 000006171471 |
000107168569 | 000080518283 | 000000005390 | 000000006654571 | 000000023750 | 000000000386292 | 000000000001 | 000000597912 | 000005160559 |
000109667432 | 000083017148 | 000000005640 | 000000006654287 | 000000023500 | 000000000318029 | 000000000001 | 000000520079 | 000004250385 |
000112166296 | 000085516018 | 000000005890 | 000000006654005 | 000000023250 | 000000000261965 | 000000000001 | 000000454701 | 000003502872 |
000114665159 | 000088014888 | 000000006140 | 000000006653722 | 000000023000 | 000000000250000 | 000000000001 | 000000417421 | 000002899086 |
000117164022 | 000090513758 | 000000006390 | 000000006653440 | 000000022750 | 000000000250000 | 000000000001 | 000000392678 | 000002416264 |
000119662886 | 000093012628 | 000000006640 | 000000006653157 | 000000022500 | 000000000250000 | 000000000001 | 000000366887 | 000002030221 |
000122161749 | 000095511502 | 000000006890 | 000000006652876 | 000000022250 | 000000000250000 | 000000000001 | 000000333403 | 000001705874 |
000124660612 | 000098010386 | 000000007140 | 000000006652597 | 000000022000 | 000000000250000 | 000000000001 | 000000292336 | 000001385575 |
000127159475 | 000100509269 | 000000007390 | 000000006652317 | 000000021750 | 000000000250000 | 000000000001 | 000000245693 | 000001118304 |
000129658339 | 000103008151 | 000000007545 | 000000006889538 | 000000021500 | 000000000250000 | 000000000001 | 000000231192 | 000000921213 |
000132157202 | 000105506956 | 000000007890 | 000000006651739 | 000000021250 | 000000000250000 | 000000000001 | 000000229314 | 000000800829 |
000134656065 | 000108005803 | 000000008140 | 000000006651451 | 000000021000 | 000000000250000 | 000000000001 | 000000213587 | 000000689736 |
000137154928 | 000110504652 | 000000008390 | 000000006651163 | 000000020750 | 000000000250000 | 000000000001 | 000000197284 | 000000577445 |
000139653792 | 000113003508 | 000000008640 | 000000006650877 | 000000020500 | 000000000250000 | 000000000001 | 000000184107 | 000000478885 |
000142152655 | 000115502368 | 000000008890 | 000000006650592 | 000000020250 | 000000000250000 | 000000000001 | 000000168464 | 000000422333 |
000144651518 | 000118001229 | 000000009140 | 000000006650307 | 000000020000 | 000000000250000 | 000000000001 | 000000128321 | 000000305225 |
000147150381 | 000120500092 | 000000009390 | 000000006650023 | 000000019750 | 000000000250000 | 000000000001 | 000000097243 | 000000213371 |
000149649245 | 000122998955 | 000000009640 | 000000006649739 | 000000019500 | 000000000250000 | 000000000001 | 000000066165 | 000000151859 |
000152148108 | 000125497818 | 000000009890 | 000000006649455 | 000000019250 | 000000000250000 | 000000000001 | 000000049814 | 000000099110 |
000154646971 | 000127996681 | 000000010140 | 000000006649170 | 000000019000 | 000000000250000 | 000000000001 | 000000035882 | 000000069266 |
000157145835 | 000130495545 | 000000010390 | 000000006648886 | 000000018750 | 000000000250000 | 000000000001 | 000000022742 | 000000042045 |
000159644698 | 000132994408 | 000000010640 | 000000006648602 | 000000018500 | 000000000250000 | 000000000001 | 000000017019 | 000000028721 |
000162143561 | 000135493271 | 000000010890 | 000000006648318 | 000000018250 | 000000000250000 | 000000000001 | 000000011295 | 000000016177 |
000164642424 | 000137992134 | 000000011135 | 000000006660534 | 000000018000 | 000000000250000 | 000000000001 | 000000007117 | 000000010725 |
키움 open-api TR 목록
728x90
댓글