update code

This commit is contained in:
Kunthawat Greethong
2026-01-08 12:48:05 +07:00
parent 143f2567c7
commit 92391f9d18
4 changed files with 2380 additions and 196 deletions

View File

@@ -304,8 +304,7 @@ def export_to_csv(df, future_price=0.0):
for _, row in put_df.iterrows():
f.write(f"PUT,{row['Strike']:.1f},{row['OI']}\n")
f.write("\n[Price]\n")
f.write(f"FuturePrice,{future_price}\n")
f.write(f"Future,{future_price},0\n")
logger.info(f"Exported OI data and price to {output_path}")