예제 #1
0
        private myFrame GetData_myDB_InterestRate(HistoricalDataRequest myRequest, Type ContainerType)
        {
            myDB_Connector           myConnect = new myDB_Connector();
            List <InterestRate_Line> myRes     = myConnect.Select <InterestRate_Line>(myRequest.id.DBID, myRequest.fields, myRequest.startDate, myRequest.endDate);

            return(new myFrame(myRes));
        }
예제 #2
0
        private myFrame GetData_myDB_Equity(HistoricalDataRequest myRequest, Type ContainerType)
        {
            myDB_Connector     myConnect = new myDB_Connector();
            List <Equity_Line> myRes     = myConnect.Select <Equity_Line>(myRequest.id.DBID, myRequest.fields, myRequest.startDate, myRequest.endDate);

            int MaxRetry = 10;
            int retry    = 0;

            /*
             * foreach (Equity_Line line in myRes)
             * {
             *  if (line.isNull()) { retry += 1; }
             *  if (retry >= MaxRetry) { return new myFrame(); }
             * }
             */
            return(new myFrame(myRes));
        }