본문 바로가기
키움자동매매

func-GetMasterListedStockDate(종목코드의 상장일을 반환)

by hyunsoft 2022. 10. 12.

func-GetMasterListedStockDate(종목코드의 상장일을 반환)

  • Code Sample
private void funcGetMasterListedStockDate() {

    string stockCd = "000660"; //SK하이닉스
    string result = axKHOpenAPI.GetMasterListedStockDate(stockCd);

    string[] columns = new string[] { "종목코드의 상장일" };
    List<string[]> list = new List<string[]>();
    list.Add(columns);
    string[] row = new string[1];
    row[0] = result;
    list.Add(row);

    PrintHtmlTable(list);
}

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);
}
  • RESPONSE Data Sample
종목코드의 상장일
19961226

 

키움증권 open-api 기본 함수 목록

728x90

댓글