Beispiel #1
0
        private void CompareIpoIdn(KoreaEquityInfo ipo)
        {
            if (idnDic == null)
            {
                return;
            }

            if (idnDic.ContainsKey(ipo.Ticker))
            {
                ReutersIdnInfo idnInfo = idnDic[ipo.Ticker];

                if ((idnInfo.BcastRef == ipo.BcastRef) && (idnInfo.DsplyName == ipo.IDNDisplayName) && (idnInfo.OffclCode == ipo.Ticker))
                {
                    return;
                }

                else
                {
                    KoreaCheckIpoData changeData = new KoreaCheckIpoData();

                    changeData.ProductionType  = ReutersProductionType.IDN;
                    changeData.TickerFm        = ipo.Ticker;
                    changeData.TickerProduct   = idnInfo.OffclCode;
                    changeData.BcastRefFm      = ipo.BcastRef;
                    changeData.BcastRefProduct = idnInfo.BcastRef;

                    if (idnInfo.OffclCode != ipo.Ticker)
                    {
                        changeData.IsTickerSame = false;
                    }

                    if (idnInfo.BcastRef != ipo.BcastRef)
                    {
                        changeData.IsIsinSame = false;
                    }

                    changedIpo.Add(changeData);
                }
            }
            else
            {
                // Mark Ticker missed.
                KoreaCheckIpoData missData = new KoreaCheckIpoData();

                missData.ProductionType = ReutersProductionType.IDN;
                missData.TickerFm       = ipo.Ticker;
                missData.TickerProduct  = string.Empty;

                missData.BcastRefFm      = ipo.BcastRef;
                missData.BcastRefProduct = string.Empty;

                missData.IsTickerSame   = false;
                missData.IsBcastRefSame = false;

                missedIpo.Add(missData);
            }
        }
Beispiel #2
0
        private void CompareIpoNda(KoreaEquityInfo ipo)
        {
            if (dseDic == null)
            {
                return;
            }

            if (dseDic.ContainsKey(ipo.Ticker))
            {
                DseFileInfo dseInfo = dseDic[ipo.Ticker];

                string[] securityNames = dseInfo.SecurityDescription.Split(' ');

                string type = string.Empty;

                if (securityNames.Length > 1)
                {
                    type = securityNames[securityNames.Length - 1];
                    dseInfo.SecurityDescription = dseInfo.SecurityDescription.Replace(type, "").Trim();
                }

                if ((dseInfo.ISIN == ipo.ISIN) && (dseInfo.SecurityDescription == ipo.IDNDisplayName))
                {
                    return;
                }

                else
                {
                    KoreaCheckIpoData changeData = new KoreaCheckIpoData();

                    changeData.ProductionType = ReutersProductionType.NDA;
                    changeData.TickerFm       = ipo.Ticker;
                    changeData.TickerProduct  = dseInfo.Ticker;
                    changeData.IsTickerSame   = true;
                    changeData.IsinFm         = ipo.ISIN;
                    changeData.IsinProduct    = dseInfo.ISIN;

                    if (dseInfo.ISIN != ipo.ISIN)
                    {
                        changeData.IsIsinSame = false;
                    }

                    changedIpo.Add(changeData);
                }
            }
            else
            {
                // Mark Ticker missed.
                KoreaCheckIpoData missData = new KoreaCheckIpoData();

                missData.ProductionType = ReutersProductionType.NDA;
                missData.TickerFm       = ipo.Ticker;
                missData.TickerProduct  = string.Empty;
                missData.IsinFm         = ipo.ISIN;
                missData.IsinProduct    = string.Empty;
                missData.IsTickerSame   = false;
                missData.IsIsinSame     = false;

                missedIpo.Add(missData);
            }
        }