def run(self): logger.info('MAKEING YOUZHI PNG...') self.is_save_dir() S = SelectDatas() json_items = S.select_data('png_items', 'daily_youzhi') json_items = json.loads(json_items) self.yzlr(json_items['yzlr_png_item']['data1'], self.save_path % 'yzlr1') self.yzlr(json_items['yzlr_png_item']['data2'], self.save_path % 'yzlr2')
def run(self): logger.info('MAKEING SHUHUA PNG...') #try: self.is_save_dir() S = SelectDatas() json_items = S.select_data('png_items', 'daily_shuhua') json_items = json.loads(json_items) self.jdd(json_items['jdd_data_item']) self.jicha(json_items['jicha_data_item']) self.jiacha(json_items['jiacha_data_item'])
def run(self): logger.info('MAKEING GUZHI PNG...') self.is_save_dir() S = SelectDatas() json_items = S.select_data('png_items', 'daily_guzhi') json_items = json.loads(json_items) # 净空单图 jkd_data_item = json_items['jkd_data_item'] self.jkd(jkd_data_item, self.save_path % 'jkd') qxjc_data_item = json_items['qxjc_data_item'] self.jc(qxjc_data_item, self.save_path % 'qxjc') kcjc_data_item = json_items['kcjc_data_item'] self.kcjc(kcjc_data_item, self.save_path % 'kqjc')
def run(self): logger.info('MAKEING NIAOSHU PNG...') self.is_save_dir() S = SelectDatas() json_items = S.select_data('png_items', 'daily_niaoshu') json_items = json.loads(json_items) self.hca_png(json_items['hca_png_item']['data1'], self.save_path % 'hca') self.map_dap_png(json_items['map_dap_png_item']['data1'], self.save_path % 'map_dap') self.five_years(json_items['five_years_png_item']['data1'], self.save_path % 'sxdlm') self.five_years(json_items['five_years_png_item']['data2'], self.save_path % 'qhddlm') self.five_years(json_items['five_years_png_item']['data3'], self.save_path % 'nskc') self.five_years(json_items['five_years_png_item']['data4'], self.save_path % 'nscl')
def run(self): logger.info('MAKEING PTA PNG...') self.is_save_dir() S = SelectDatas() json_items = S.select_data('png_items', 'daily_pta') json_items = json.loads(json_items) # 基差图 jicha_item = json_items['jicha_data_item'] self.jicha(jicha_item, self.save_path % 'jicha') # 净多单图 jdd_data_item = json_items['jdd_data_item'] self.jdd(jdd_data_item['data1'], self.save_path % 'jdd') # 库存图 xhkc_item = json_items['xhkc_data_item'] self.xh(xhkc_item, self.save_path % 'kc') # 开工率图 kgl_data_item = json_items['kgl_data_item'] self.xh(kgl_data_item, self.save_path % 'kgl')
def run(self): logger.info('MAKEING XIANGJIAO PNG...') try: self.is_save_dir() S = SelectDatas() json_items = S.select_data('png_items', 'daily_xiangjiao') json_items = json.loads(json_items) # 现货图 xhjg_item = json_items['xhjg_data_item'] xhkc_item = json_items['xhkc_data_item'] self.xh(xhjg_item, self.save_path % 'xhjg') self.xh(xhkc_item, self.save_path % 'xhkc') # 基差图 jicha_item = json_items['jicha_data_item'] self.jicha(jicha_item['data1'], self.save_path % 'jicha') # 净多单图 jdd_data_item = json_items['jdd_data_item'] self.jdd(jdd_data_item['data1'], self.save_path % 'jdd') # 外盘图 param = json_items['wpqh_data_item'] self.wpqh(param, self.save_path % 'wpqh') except: logger.error('XIANGJIAO ERROR')