Beispiel #1
0
        private void SetData_myDB_EquityVolatility(IDtoken idTok, myFrame data)
        {
            myDB_Connector myConnect = new myDB_Connector();
            List <EquityVolatility_Line> dataToInsert = data.ToList <EquityVolatility_Line>(idTok.DBID);

            myConnect.Insert <EquityVolatility_Line>(idTok, dataToInsert);
        }
Beispiel #2
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));
        }
Beispiel #3
0
        private void SetData_myDB_Bond(IDtoken idTok, myFrame data)
        {
            myDB_Connector   myConnect    = new myDB_Connector();
            List <Bond_Line> dataToInsert = data.ToList <Bond_Line>(idTok.DBID);

            myConnect.Insert <Bond_Line>(idTok, dataToInsert);
        }
Beispiel #4
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));
        }