Ejemplo n.º 1
0
def get_first_history_high_volume_in_10_days():
    stock_list_file = 'basic-no3.csv'
    tmpfile = Path().joinpath('result', 'get_first_history_high_volume_in_10_days.csv')
    df = myapi.read_csv(stock_list_file)
    df = myapi.remove_unwanted_fields(df)

    """
    in latest 10 days, find history high
    """
    df_result = myapi.get_first_history_high_volume_in_n(df, 2)
    df_result.to_csv(tmpfile)
Ejemplo n.º 2
0
def get_half_year_high_v2():
    stock_list_file = 'basic-no3.csv'
    tmpfile = Path().joinpath('result', 'get_half_year_high_v2.csv')
    df = myapi.read_csv(stock_list_file)
    df = myapi.remove_unwanted_fields(df)

    """
    in latest 10 days, find history high
    """
    df_result = myapi.get_history_high_v2(df, 3, 120)
    df_result.to_csv(tmpfile)
Ejemplo n.º 3
0
def get_one_year_high():
    stock_list_file = 'basic-no3.csv'
    tmpfile = Path().joinpath('result', 'get_one_year_high.csv')

    # stock_list_file = 'mystocklist-detail.csv'
    df = myapi.read_csv(stock_list_file)
    df = myapi.remove_unwanted_fields(df)

    """
    in latest 10 days, find history high
    """
    df_result = myapi.get_history_high(df, 10, 12)
    df_result.to_csv(tmpfile)