def GET_HIGH_DATA_MONTH(self, context,security,isLastest=True,data={},dataCount=1,isSample=True):
df_data = ts.get_k_data(security, index=False, ktype='M').tail(dataCount) if isSample else ts.get_k_data(security, index=False, ktype='D').tail(dataCount*20)
if df_data.empty == True:
print "security:%s in context:%s NO GET_HIGH_DATA_MONTH!" %(str(security),str(context))
return np.array([np.nan])
return self.GET_HIGH_DATA_MONTH_DF(context, df_data, isSample)
评论列表
文章目录