Пример #1
0
 def __init__(self, spark):
     LeekSparkJob.__init__(self, spark)
     self.stock_cust_investment_ability = self.conf[
         'stock_cust_investment_ability_table']
     self.stock_cust_investment_rank_score = self.conf[
         'stock_cust_investment_rank_score_table']
     self.index_price = self.conf["index_price_table"]
Пример #2
0
 def __init__(self, spark):
     LeekSparkJob.__init__(self, spark)
     self.stock_cust_pl_analysis = self.conf['stock_cust_pl_analysis_table']
     self.stock_close_trade_long_data = self.conf["long_close_trade_table"]
     self.stock_close_trade_short_data = self.conf["short_close_trade_table"]
     self.stock_unclose_trade_long_data = self.conf["long_unclose_trade_table"]
     self.stock_unclose_trade_short_data = self.conf["short_unclose_trade_table"]
Пример #3
0
 def __init__(self, spark):
     LeekSparkJob.__init__(self, spark)
     self.stock_cust_daily_return = self.conf[
         'stock_cust_daily_return_ssid_table']
     self.stock_daily_check_data = self.conf["check_data_table"]
     self.part_numbers = int(
         self.confIni.get("task_stock_cust_daily_return", "part_numbers"))
Пример #4
0
 def __init__(self, spark):
     LeekSparkJob.__init__(self, spark)
     self.stock_cust_daily_holding = self.conf[
         'stock_cust_daily_holding_ssid_table']
     self.stock_daily_check_data = self.conf["check_data_table"]
     self.stock_description = self.conf["stock_description_table"]
     self.part_numbers = int(
         self.confIni.get("task_stock_cust_daily_holding", "part_numbers"))
Пример #5
0
 def __init__(self, spark, busi_date, mode):
     LeekSparkJob.__init__(self, spark)
     # T-1Date
     self.enddate = busi_date
     # 如果不是交易日,则不进行计算
     if not self.is_trading_day(self.enddate):
         print("task start error day[%s] is not trading day" % self.enddate)
         sys.exit(0)
     self.mode = mode
 def __init__(self, spark):
     LeekSparkJob.__init__(self, spark)
     self.stock_cust_trd_quant = self.conf["stock_cust_trd_quant_table"]
     self.stock_cust_diagnosis_sell_time = self.conf["stock_cust_diagnosis_sell_time_table"]
     self.stock_cust_diagnosis_sell_ind = self.conf["stock_cust_diagnosis_sell_ind_table"]
     self.stock_cust_diagnosis_sell_prd = self.conf["stock_cust_diagnosis_sell_prd_table"]
     self.stock_cust_diagnosis_buy_time = self.conf["stock_cust_diagnosis_buy_time_table"]
     self.stock_cust_diagnosis_buy_ind = self.conf["stock_cust_diagnosis_buy_ind_table"]
     self.stock_cust_diagnosis_buy_prd = self.conf["stock_cust_diagnosis_buy_prd_table"]
Пример #7
0
 def __init__(self, spark):
     LeekSparkJob.__init__(self, spark)
     self.stock_cash_flow_detail = self.conf["cash_flow_table"]
     self.stock_price = self.conf["stock_price_table"]
     self.stock_shortterm_return_rate = self.conf[
         "stock_shortterm_return_rate_table"]
     self.index_shortterm_return_rate = self.conf[
         "index_shortterm_return_rate_table"]
     self.stock_description = self.conf["stock_description_table"]
     self.index_description = self.conf["index_description_table"]
     self.stock_cust_trd_quant = self.conf["stock_cust_trd_quant_table"]
Пример #8
0
 def __init__(self, spark):
     LeekSparkJob.__init__(self, spark)
     self.stock_cust_investment_ability = self.conf[
         'stock_cust_investment_ability_table']
     self.stock_cust_daily_return = self.conf[
         "stock_cust_daily_return_ssid_table"]
     self.index_price = self.conf["index_price_table"]
     self.step = int(
         self.confIni.get("task_stock_cust_investment_ability",
                          "travel_part_step"))
     self.table_part = int(
         self.confIni.get("task_stock_cust_daily_return", "part_numbers"))
Пример #9
0
 def __init__(self, spark):
     LeekSparkJob.__init__(self, spark)
     self.stock_tradebyday_data = self.conf["stock_tradebyday_data_table"]
     self.stock_close_tradebyday_by_month = self.conf[
         "stock_close_tradebyday_by_month_table"]
     self.stock_close_tradebyday_long_data = self.conf[
         "stock_close_tradebyday_long_data_table"]
     self.stock_close_tradebyday_short_data = self.conf[
         "stock_close_tradebyday_short_data_table"]
     self.stock_unclose_tradebyday_long_data = self.conf[
         "stock_unclose_tradebyday_long_data_table"]
     self.stock_unclose_tradebyday_short_data = self.conf[
         "stock_unclose_tradebyday_short_data_table"]