QUANTAXIS 读取历史交易记录 通达信 历史成交-输出-xlsfile--转换csvfile

def QA_fetch_get_tdxtraderecord(file):
    """
    QUANTAXIS 读取历史交易记录 通达信 历史成交-输出-xlsfile--转换csvfile
    """
    try:
        with open('./20180606.csv', 'r') as f:
            l = csv.reader(f)
            data = [item for item in l]

        res = pd.DataFrame(data[1:], columns=data[0])
        return res
    except:
        raise IOError('QA CANNOT READ THIS RECORD')