Ejemplo n.º 1
0
    def getStarStStatistics(self):
        SQL = StUtil().buildStStatisticsSQL(STAR_ST_TYPE)
        datas = StatisticsDao().getStStatisticsDatas(SQL)
        avg = StUtil().getAverage(datas)
        (minColl, maxColl) = StUtil().getMaxAndMin(datas)
        diffPre = StUtil().getDiffPre(datas)

        return json.dumps([datas, avg, minColl, maxColl, diffPre])
Ejemplo n.º 2
0
 def stCount(self, datas):
     stDatas = StUtil().deleteStarSt(datas)
     self.compute(stDatas, NO_STAR_ST_TYPE)
Ejemplo n.º 3
0
 def transformStatisticsBean(self, datas, stType):
     return StUtil().transformStatisticsBean(datas, stType)
Ejemplo n.º 4
0
    def getIndexDatas(self, stockCodeSuffix):
        #         tsCodeSuffix = CommonUtil().getStockCodeSuffix( stockCode )
        SQL = StUtil().buildIndexDataSQL(stockCodeSuffix)

        return FinancialDao().getIndexDatas(SQL)
Ejemplo n.º 5
0
    def getStockDatas(self, tsCode):
        tsCodePrefix = CommonUtil().getStockCodePrefix(tsCode)
        SQL = StUtil().buildStockDataSQL(tsCodePrefix)

        return FinancialDao().getStockDatas(SQL, tsCode)