def run(self): logger.info('MAKEING YUANYOU PNG...') self.is_save_dir() S = SelectDatas() json_items = S.select_data('png_items', 'daily_yuanyou') json_items = json.loads(json_items) # 基差图 sc_data_item = json_items['sc_data_item'] self.jicha(sc_data_item['data1'], self.save_path % 'sc_jc') wti_data_item = json_items['wti_data_item'] self.jicha(wti_data_item['data1'], self.save_path % 'wti_jc') brent_data_item = json_items['brent_data_item'] self.jicha(brent_data_item['data1'], self.save_path % 'brent_jc') # 开工率 kgl_data_item = json_items['kgl_data_item'] self.kgl(kgl_data_item, self.save_path % 'kgl') # 库存 kc_data_item = json_items['kc_data_item'] self.kc(kc_data_item['data1'], self.save_path % 'kc') # 持仓 cc_data_item = json_items['cc_data_item'] self.cc(cc_data_item, self.save_path % 'cc')
def run(self): logger.info('MAKEING JIACHUN PNG...') self.is_save_dir() S = SelectDatas() json_items = S.select_data('png_items', 'daily_jiachun') json_items = json.loads(json_items) # 基差图 jicha_item = json_items['jicha_data_item'] self.jicha(jicha_item['data1'], self.save_path % 'jicha') # 价差图 jicha_item = json_items['jiacha_data_item'] self.jicha(jicha_item['data1'], self.save_path % 'jiacha') # 净多单图 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 % 'xhkc') # PP利润 pplr_data_item = json_items['pplr_data_item'] self.pplr(pplr_data_item['data1'], self.save_path % 'pplr') # # # 进口利润 jklr_data_item = json_items['jklr_data_item'] jklr_data_item['data1'].sort() self.jicha(jklr_data_item['data1'], self.save_path % 'jklr')
def run(self): logger.info('MAKEING YUMI PNG...') self.is_save_dir() S = SelectDatas() json_items = S.select_data('png_items', 'daily_yumi') json_items = json.loads(json_items) self.three_years(json_items['xhjg_png_item'], self.save_path % 'xhjg') self.three_years(json_items['ymkc_png_item'], self.save_path % 'ymkc') self.three_years(json_items['jckr_png_item'], self.save_path % 'jklr') self.three_years(json_items['sdwf_png_item'], self.save_path % 'sdwf')
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 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 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')