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

🥰 func-GetActPriceList(지수옵션 행사가 리스트를 반환)

by Knowledge Store In Hyunsoft 2022. 10. 12.

func-GetActPriceList(지수옵션 행사가 리스트를 반환)

  • Code Sample
private void funcGetActPriceList() {
    string actPriceList = axKHOpenAPI.GetActPriceList();

    //반환값의 행사가간 구분은 ‘;'
    string[] spData = actPriceList.Split(';');

    string[] columns = new string[] { "지수옵션 행사가" };
    List<string[]> list = new List<string[]>();
    list.Add(columns);

    for (int ni = 0; ni < spData.Length; ni++) {
        string[] row = new string[1];
        row[0] = spData[ni];
        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
지수옵션 행사가
14000
14250
14500
14750
15000
15250
15500
15750
16000
16250
16500
16750
17000
17250
17500
17750
18000
18250
18500
18750
19000
19250
19500
19750
20000
20250
20500
20750
21000
21250
21500
21750
22000
22250
22500
22750
23000
23250
23500
23750
24000
24250
24500
24750
25000
25250
25500
25750
26000
26250
26500
26750
27000
27250
27500
27750
28000
28250
28500
28750
29000
29250
29500
29750
30000
30250
30500
30750
31000
31250
31500
31750
32000
32250
32500
32750
33000
33250
33500
33750
34000
34250
34500
34750
35000
35250
35500
35750
36000
36250
36500
36750
37000
37250
37500
37750
38000
38250
38500
38750
39000
39250
39500
39750
40000
40250
40500
40750
41000
41250
41500
41750
42000
42250
42500
42750
43000
43250
43500
43750
44000
44250
44500
44750
45000
45250
45500
45750
46000
46250
46500
46750
47000
47250
47500
47750
48000
48250
48500
48750
49000
49250
49500
49750
50000
50250
50500
50750
51000
51250
51500
51750
52000

 

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

728x90

댓글