반응형
using System;
using KHOpenAPI;
namespace GetThemeGroupListExample
{
class Program
{
static void Main(string[] args)
{
// Kiwoom OpenAPI 연결
OpenAPI api = new OpenAPI();
api.CommConnect();
// GetThemeGroupList 호출
string[] themeGroupList = api.GetThemeGroupList(1).Split(';'); //(0:코드순, 1:테마순)
// 테마 그룹 정보 출력
foreach (string themeGroup in themeGroupList)
{
Console.WriteLine(themeGroup);
}
// Kiwoom OpenAPI 연결 해제
api.CommTerminate();
}
}
}
반응형
'프로그래밍 > 잡동산이' 카테고리의 다른 글
[nodejs] mongodb 접속 방법 (0) | 2023.03.01 |
---|---|
[nodejs] 네이버 종목의 뉴스를 크롤링 해보자. (0) | 2023.02.12 |
[nodejs] CRUD 기본코드 (0) | 2023.02.11 |
[MongoDB] 우분투 재시작시 자동 실행 방법 (0) | 2023.02.11 |
[MongoDB] Collection Backup (0) | 2023.02.11 |