# op, ra, duration_date, days = pct.get_linear_model_status('999999', filter='y', dl=dl, ptype=ptype, days=1)
    # duration_date = int(ct.duration_date * 1.4)
    duration_date = ct.duration_date_l
#    duration_date = 120
    # duration_date = 300
    du_date = duration_date
    resample = ct.resample_dtype
    newdays = 5
    end_date = None
    ptype = 'low'
    filter = 'y'
    percent_status = 'n'
    if len(str(duration_date)) < 4:
        # duration_date = tdd.get_duration_price_date('999999', dl=duration_date, end=end_date, ptype='dutype')
        du_date = tdd.get_duration_Index_date('999999', dl=duration_date)
        if cct.get_today_duration(du_date) <= 3:
            duration_date = 5
            print("duaration: %s duration_date:%s" % (cct.get_today_duration(du_date), duration_date))
        log.info("duaration: %s duration_date:%s" % (cct.get_today_duration(du_date), duration_date))
    set_duration_console(du_date)
    # all_diffpath = tdd.get_tdx_dir_blocknew() + '062.blk'
    parser = cct.MoniterArgmain()
    parserDuraton = cct.DurationArgmain()
    st_key_sort = ct.sort_value_key_perd
    st = None
    while 1:
        try:
            # df = sina_data.Sina().all
            # top_now = tdd.getSinaAlldf(market='cx', vol=ct.json_countVol, vtype=ct.json_countType)
            # top_now = tdd.getSinaAlldf(market='次新股',filename='cxg', vol=ct.json_countVol, vtype=ct.json_countType)
            if st is None:
Exemple #2
0
    lastpTDX_DF = pd.DataFrame()
    # dl=30
    # op, ra, duration_date, days = pct.get_linear_model_status('999999', filter='y', dl=dl, ptype=ptype, days=1)
    # duration_date = ct.duration_date
    duration_date = ct.duration_date_l
    du_date = duration_date
    resample = ct.resample_dtype
    newdays = 30
    end_date = None
    ptype = 'low'
    filter = 'y'
    percent_status = 'n'
    if len(str(duration_date)) < 4:
        # duration_date = tdd.get_duration_price_date('999999', dl=duration_date, end=end_date, ptype='dutype')
        du_date = tdd.get_duration_Index_date('999999', dl=duration_date)
        if cct.get_today_duration(du_date) <= 3:
            duration_date = 5
            print(("duaration: %s duration_date:%s" %
                   (cct.get_today_duration(du_date), duration_date)))
        log.info("duaration: %s duration_date:%s" %
                 (cct.get_today_duration(du_date), duration_date))
    set_duration_console(du_date)

    from . import search_Tdx_multi_data_duration250 as search250
    search250.get_roll_mean_all(single=False, tdx=True, app=False)

    # all_diffpath = tdd.get_tdx_dir_blocknew() + '062.blk'
    parser = cct.MoniterArgmain()
    parserDuraton = cct.DurationArgmain()
    st_key_sort = '2'
    st = None