private int PledgeStockToOCC(int PledgeIdFromLocalTable, string CUSIP, int SharesToPledge, string clearingNo)
        {
            OutgoingPledgeOrderObject OPO = CreateBasePledge(PledgeIdFromLocalTable, "21", CUSIP, SharesToPledge, clearingNo);

            OPO.PledgePurpose     = "1";
            OPO.HypothecationCode = "1";

            PledgeFac.Insert(OPO);

            return(OPO.Id);
        }
        private OutgoingPledgeOrderObject CreateBasePledge(int PledgeIdFromLocalTable, string RecordType, string CUSIP, int SharesToUnpledge, string clearingNo)
        {
            OutgoingPledgeOrderObject OPO = new OutgoingPledgeOrderObject();

            OPO.DateEntered         = DateTime.Now;
            OPO.EnteredBy           = Environment.UserName;
            OPO.FeedbackIndicator   = "";
            OPO.ProductionIndicator = "P";
            OPO.RecType             = "COLC02";
            OPO.RecordSuffix        = "01";
            OPO.VersionNumber       = "01";
            OPO.UserReferenceNumber = PledgeIdFromLocalTable.ToString().Substring(0, 6);    //Reason we do this is because the table only allows up to 6 characters
            OPO.Adressee            = "G0000346";
            OPO.RecordType          = RecordType;
            OPO.Pledgor             = clearingNo.PadLeft(8, '0');
            OPO.Pledgee             = "00000981";
            OPO.Cusip                   = CUSIP;
            OPO.ShareQuantity           = SharesToUnpledge.ToString().PadLeft(9, '0');
            OPO.LoanDate                = "19730320";
            OPO.LoanValueWhole          = "";
            OPO.LoanValueDecimal        = "";
            OPO.PledgePurpose           = "";
            OPO.ReleaseType             = "";
            OPO.HypothecationCode       = "";
            OPO.PreventPendIndicator    = "";
            OPO.CnsIndicator            = "";
            OPO.IpoIndicator            = "";
            OPO.PtaIndicator            = "";
            OPO.FederalReservePurpose   = "";
            OPO.OccParticipantNumber    = "";
            OPO.BankAbaNumber           = "";
            OPO.OccNumber               = "";
            OPO.OccClearingGroupId      = "";
            OPO.OccClearingMemberNumber = clearingNo.PadLeft(5, '0');
            OPO.OccAccountType          = "F";
            OPO.OccAccountId            = "";
            OPO.OccCollateralType       = "VS";
            OPO.OccOptionSymbol         = "";
            OPO.OccExpirationYear       = "";
            OPO.OccExpirationMonth      = "";
            OPO.OccExpirationDay        = "";
            OPO.OccOptionType           = "";
            OPO.OccOptionStrike         = "";
            OPO.OccOptionStrikeDecimal  = "";
            OPO.Blank                   = "";
            OPO.CrossReferenceNumber    = PledgeIdFromLocalTable.ToString();
            OPO.CustomerAccountNumber   = "";
            OPO.OccFiller               = "";
            OPO.DtccFiller              = "";

            return(OPO);
        }
Esempio n. 3
0
        private OutgoingPledgeOrderObject CreateBasePledge(int PledgeIdFromLocalTable, string RecordType, string CUSIP, int SharesToUnpledge, string clearingNo)
        {
            OutgoingPledgeOrderObject OPO = new OutgoingPledgeOrderObject();

            OPO.DateEntered = DateTime.Now;
            OPO.EnteredBy = Environment.UserName;
            OPO.FeedbackIndicator = "";
            OPO.ProductionIndicator = "P";
            OPO.RecType = "COLC02";
            OPO.RecordSuffix = "01";
            OPO.VersionNumber = "01";
            OPO.UserReferenceNumber = PledgeIdFromLocalTable.ToString().Substring(0, 6);    //Reason we do this is because the table only allows up to 6 characters
            OPO.Adressee = "G0000346";
            OPO.RecordType = RecordType;
            OPO.Pledgor = clearingNo.PadLeft(8, '0');
            OPO.Pledgee = "00000981";
            OPO.Cusip = CUSIP;
            OPO.ShareQuantity = SharesToUnpledge.ToString().PadLeft(9, '0');
            OPO.LoanDate = "19730320";
            OPO.LoanValueWhole = "";
            OPO.LoanValueDecimal = "";
            OPO.PledgePurpose = "";
            OPO.ReleaseType = "";
            OPO.HypothecationCode = "";
            OPO.PreventPendIndicator = "";
            OPO.CnsIndicator = "";
            OPO.IpoIndicator = "";
            OPO.PtaIndicator = "";
            OPO.FederalReservePurpose = "";
            OPO.OccParticipantNumber = "";
            OPO.BankAbaNumber = "";
            OPO.OccNumber = "";
            OPO.OccClearingGroupId = "";
            OPO.OccClearingMemberNumber = clearingNo.PadLeft(5, '0');
            OPO.OccAccountType = "F";
            OPO.OccAccountId = "";
            OPO.OccCollateralType = "VS";
            OPO.OccOptionSymbol = "";
            OPO.OccExpirationYear = "";
            OPO.OccExpirationMonth = "";
            OPO.OccExpirationDay = "";
            OPO.OccOptionType = "";
            OPO.OccOptionStrike = "";
            OPO.OccOptionStrikeDecimal = "";
            OPO.Blank = "";
            OPO.CrossReferenceNumber = PledgeIdFromLocalTable.ToString();
            OPO.CustomerAccountNumber = "";
            OPO.OccFiller = "";
            OPO.DtccFiller = "";

            return OPO;
        }