update code
This commit is contained in:
@@ -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}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user