diff --git a/qlib/dump_all_to_qlib_source.py b/qlib/dump_all_to_qlib_source.py index 5cb013d..ed49ebc 100644 --- a/qlib/dump_all_to_qlib_source.py +++ b/qlib/dump_all_to_qlib_source.py @@ -16,7 +16,7 @@ def dump_all_to_sqlib_source(skip_exists=True): print("Dumping to file: ", filename) if skip_exists and os.path.isfile(filename): continue - stock_df = pd.read_sql(f"select * from final_a_stock_eod_price where symbol='{symbol}'", dbConnection) + stock_df = pd.read_sql(f"select *, amount/volume*10 as vwap from final_a_stock_eod_price where symbol='{symbol}'", dbConnection) stock_df.to_csv(filename, index=False) if __name__ == "__main__":