본문 바로가기
728x90

키움자동매매65

func-GetSFutureList(주식선물 코드 리스트를 반환) func-GetSFutureList(주식선물 코드 리스트를 반환) Code Sample private void funcGetSFutureList() { // 기초자산코드 nIndex – 0~3 지수선물코드, 4~7 지수스프레드, 8~11 스타 선물, 12~ 스타 스프레드 string strBaseAssetCode = "12"; string sFutureList = axKHOpenAPI.GetSFutureList(strBaseAssetCode); //출력값의 코드간 구분은 ‘;’ string[] spData = sFutureList.Split(';'); string[] columns = new string[] { "주식선물 코드 리스트" }; List list = new List(); list.Add(co.. 2022. 10. 12.
func-GetOptionCode(지수옵션 종목코드를 반환) func-GetOptionCode(지수옵션 종목코드를 반환) Code Sample private void funcGetOptionCode() { string strActPrice = "260.0";// – 행사가(소수점포함) int nCp = 2;//– 콜풋구분 2:콜, 3:풋 string strMonth = "202210";//– 월물(6자리) string result = axKHOpenAPI.GetOptionCode(strActPrice, nCp, strMonth); string[] columns = new string[] { "지수옵션 월물 리스트" }; string[] row = new string[] { result }; List list = new List(); list.Add(columns).. 2022. 10. 12.
func-GetMonthList(지수옵션 월물 리스트를 반환) func-GetMonthList(지수옵션 월물 리스트를 반환) Code Sample private void funcGetMonthList() { string monthList = axKHOpenAPI.GetMonthList(); //반환값의 월물간 구분은 ‘;’ string[] spData = monthList.Split(';'); string[] columns = new string[] { "지수옵션 월물 리스트" }; List list = new List(); list.Add(columns); for (int ni = 0; ni < spData.Length; ni++) { string[] row = new string[1]; row[0] = spData[ni]; list.Add(row); } Prin.. 2022. 10. 12.
func-GetActPriceList(지수옵션 행사가 리스트를 반환) func-GetActPriceList(지수옵션 행사가 리스트를 반환) Code Sample private void funcGetActPriceList() { string actPriceList = axKHOpenAPI.GetActPriceList(); //반환값의 행사가간 구분은 ‘;' string[] spData = actPriceList.Split(';'); string[] columns = new string[] { "지수옵션 행사가" }; List list = new List(); list.Add(columns); for (int ni = 0; ni < spData.Length; ni++) { string[] row = new string[1]; row[0] = spData[ni]; list.Ad.. 2022. 10. 12.
728x90