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

🥰 func-GetFutureList(지수선물 리스트를 반환)

by Knowledge Store In Hyunsoft 2022. 10. 12.

tr-GetFutureList(지수선물 리스트를 반환)

  • Code Sample
private void funcGetFutureList() {
    string futureList = axKHOpenAPI.GetFutureList();

    //반환값의 종목코드간 구분은 ‘;’
    string[] spData = futureList.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
지수선물 리스트
101SC000
101T3000
101T6000
101T9000
101TC000
101V6000
101VC000
401SCT3S
401SCT6S
401SCT9S
401SCTCS
401SCV6S
401SCVCS
105SA000
105SB000
105SC000
105T1000
105T2000
105T3000
405SASBS
405SASCS
405SAT1S
405SAT2S
405SAT3S
106SC000
106T3000
106T6000
106T9000
106TC000
106V6000
106VC000
406SCT3S
406SCT6S
406SCT9S
406SCTCS
406SCV6S
406SCVCS
104SB000
104SC000
104T1000
104T2000
104T3000
104T4000
404SBSCS
404SBT1S
404SBT2S
404SBT3S
404SBT4S
107SC000
107T3000
107T6000
107T9000
107TC000
107V3000
107V6000
107V9000
407SCT3S
407SCT6S
1A0SC000
1A0T3000
1A0T6000
1A0T9000
1A0TC000
1A0V6000
1A0VC000
4A0SCT3S
4A0SCT6S
4A0SCT9S
4A0SCTCS
4A0SCV6S
4A0SCVCS
1A1SC000
1A1T3000
1A1T6000
1A1T9000
1A1TC000
1A1V6000
1A1VC000
4A1SCT3S
4A1SCT6S
4A1SCT9S
4A1SCTCS
4A1SCV6S
4A1SCVCS
1A2SC000
1A2T3000
1A2T6000
1A2T9000
1A2TC000
1A2V6000
1A2VC000
4A2SCT3S
4A2SCT6S
4A2SCT9S
4A2SCTCS
4A2SCV6S
4A2SCVCS
1A3SC000
1A3T3000
1A3T6000
1A3T9000
1A3TC000
1A3V6000
1A3VC000
4A3SCT3S
4A3SCT6S
4A3SCT9S
4A3SCTCS
4A3SCV6S
4A3SCVCS
1A6SC000
1A6T3000
1A6T6000
1A6T9000
1A6TC000
1A6V6000
1A6VC000
4A6SCT3S
4A6SCT6S
4A6SCT9S
4A6SCTCS
4A6SCV6S
4A6SCVCS
1A7SC000
1A7T3000
1A7T6000
1A7T9000
1A7TC000
1A7V6000
1A7VC000
4A7SCT3S
4A7SCT6S
4A7SCT9S
4A7SCTCS
4A7SCV6S
4A7SCVCS
1A8SC000
1A8T3000
1A8T6000
1A8T9000
1A8TC000
1A8V6000
1A8VC000
4A8SCT3S
4A8SCT6S
4A8SCT9S
4A8SCTCS
4A8SCV6S
4A8SCVCS
1A9SC000
1A9T3000
1A9T6000
1A9T9000
1A9TC000
1A9V6000
1A9VC000
4A9SCT3S
4A9SCT6S
4A9SCT9S
4A9SCTCS
4A9SCV6S
4A9SCVCS
1AASC000
1AAT3000
1AAT6000
1AAT9000
1AATC000
1AAV6000
1AAVC000
4AASCT3S
4AASCT6S
4AASCT9S
4AASCTCS
4AASCV6S
4AASCVCS
1ABSC000
1ABT3000
1ABT6000
1ABT9000
1ABTC000
1ABV6000
1ABVC000
4ABSCT3S
4ABSCT6S
4ABSCT9S
4ABSCTCS
4ABSCV6S
4ABSCVCS
1A4SC000
1A4T3000
1A4T6000
1A4T9000
1A4TC000
1A4V6000
1A4VC000
4A4SCT3S
4A4SCT6S
4A4SCT9S
4A4SCTCS
4A4SCV6S
4A4SCVCS
1A5SC000
1A5T3000
1A5T6000
1A5T9000
1A5TC000
1A5V6000
1A5VC000
4A5SCT3S
4A5SCT6S
4A5SCT9S
4A5SCTCS
4A5SCV6S
4A5SCVCS
108SC000
108T3000
108T6000
108T9000
408SCT3S
408SCT6S
408SCT9S
1ACSC000
1ACT3000
1ACT6000
1ACT9000
4ACSCT3S
4ACSCT6S
4ACSCT9S
1ADSC000
1ADT3000
1ADT6000
1ADT9000
4ADSCT3S
4ADSCT6S
4ADSCT9S
1AESC000
1AET3000
1AET6000
1AET9000
4AESCT3S
4AESCT6S
4AESCT9S

 

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

728x90

댓글