# Path: kquant_data/config.py
# __CONFIG_H5_FUT_DATA_DIR__ = os.path.join(__CONFIG_H5_FUT_DIR__, 'data')


import os
import pandas as pd
from kquant_data.config import __CONFIG_H5_FUT_DATA_DIR__

        path2 = os.path.join(output_path, '%s_short_position_increase.csv' % folder_name)
        dfs_short.to_csv(path2, encoding='utf-8-sig', date_format='%Y-%m-%d')


if __name__ == '__main__':

    member_name = '前二十名合计'
    folder_name = 'top20'
    input_path = os.path.join(__CONFIG_H5_FUT_DATA_DIR__, "futureoir")
    output_path = os.path.join(__CONFIG_H5_FUT_DATA_DIR__, "futureoir_processed")
    process1(input_path, output_path, member_name, folder_name)
    input_path = os.path.join(__CONFIG_H5_FUT_DATA_DIR__, "futureoir_processed", folder_name)
    output_path = os.path.join(__CONFIG_H5_FUT_DATA_DIR__, "futureoir_processed")
    process2(input_path, output_path, folder_name)


    member_name = '前十名合计'
    folder_name = 'top10'
    input_path = os.path.join(__CONFIG_H5_FUT_DATA_DIR__, "futureoir")
    output_path = os.path.join(__CONFIG_H5_FUT_DATA_DIR__, "futureoir_processed")
    process1(input_path, output_path, member_name, folder_name)
    input_path = os.path.join(__CONFIG_H5_FUT_DATA_DIR__, "futureoir_processed", folder_name)
    output_path = os.path.join(__CONFIG_H5_FUT_DATA_DIR__, "futureoir_processed")
    process2(input_path, output_path, folder_name)


    member_name = '前五名合计'
    folder_name = 'top5'
    input_path = os.path.join(__CONFIG_H5_FUT_DATA_DIR__, "futureoir")

# Path: kquant_data/config.py
# __CONFIG_H5_FUT_DATA_DIR__ = os.path.join(__CONFIG_H5_FUT_DIR__, 'data')


# Path: demo_future/A03_merge_futureoir.py
import os
import pandas as pd
from kquant_data.config import __CONFIG_H5_FUT_DATA_DIR__


        path2 = os.path.join(output_path, '%s_short_position_increase.csv' % folder_name)
        dfs_short.to_csv(path2, encoding='utf-8-sig', date_format='%Y-%m-%d')


if __name__ == '__main__':

    member_name = '前二十名合计'
    folder_name = 'top20'
    input_path = os.path.join(__CONFIG_H5_FUT_DATA_DIR__, "futureoir")
    output_path = os.path.join(__CONFIG_H5_FUT_DATA_DIR__, "futureoir_processed")
    process1(input_path, output_path, member_name, folder_name)
    input_path = os.path.join(__CONFIG_H5_FUT_DATA_DIR__, "futureoir_processed", folder_name)
    output_path = os.path.join(__CONFIG_H5_FUT_DATA_DIR__, "futureoir_processed")
    process2(input_path, output_path, folder_name)


    member_name = '前十名合计'
    folder_name = 'top10'
    input_path = os.path.join(__CONFIG_H5_FUT_DATA_DIR__, "futureoir")
    output_path = os.path.join(__CONFIG_H5_FUT_DATA_DIR__, "futureoir_processed")
    process1(input_path, output_path, member_name, folder_name)
    input_path = os.path.join(__CONFIG_H5_FUT_DATA_DIR__, "futureoir_processed", folder_name)
    output_path = os.path.join(__CONFIG_H5_FUT_DATA_DIR__, "futureoir_processed")
    process2(input_path, output_path, folder_name)


    member_name = '前五名合计'
    folder_name = 'top5'
    input_path = os.path.join(__CONFIG_H5_FUT_DATA_DIR__, "futureoir")

    output_path = os.path.join(__CONFIG_H5_FUT_DATA_DIR__, "futureoir_processed")