Example #1
0
        private Dictionary <String, String> getCodeDictionaryByMarketNum(String marketNum)
        {
            DataUtil      util     = new DataUtil();
            String        codeData = kiWoomApi.GetCodeListByMarket(marketNum);
            List <String> codeList = util.parseCodeData(codeData);
            Dictionary <String, String> codeDic = new Dictionary <String, String>();

            codeList.RemoveAt(codeList.Count - 1);

            foreach (String code in codeList)
            {
                String name = kiWoomApi.GetMasterCodeName(code);
                if (marketNum.Equals("0") && code[0] == '5')
                {
                    continue;
                }
                codeDic.Add(code, name);
            }
            return(codeDic);
        }