You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@shivakn2003 Are you talking about the .csv file?
If yes, you can include it by modifying the code in the function export()
Specifically lines:
csv_exists: bool = os.path.isfile(
f"NSE-OCA-{self.index if self.option_mode == 'Index' else self.stock}-{self.expiry_date}.csv")
try:
if not csv_exists:
with open(f"NSE-OCA-{self.index if self.option_mode == 'Index' else self.stock}-{self.expiry_date}.csv",
"a", newline="") as row:
data_writer: csv.writer = csv.writer(row)
data_writer.writerow(self.csv_headers)
with open(f"NSE-OCA-{self.index if self.option_mode == 'Index' else self.stock}-{self.expiry_date}.csv",
"a", newline="") as row:
Hello
Is it possible to include the strike price of Index in the file name?
Can trading date be part of the file name instead of expiry date?
The text was updated successfully, but these errors were encountered: