@@ -37,14 +37,14 @@ def safely_modify_roll_parameters(data: dataBlob):
37
37
data , instrument_code = instrument_code
38
38
)
39
39
40
- output_path_for_roll_calendar = input (
41
- "Path for writing roll calendar; must be absolute with leading "
40
+ output_path_for_temp_csv_files = input (
41
+ "Path for writing roll calendar and roll parameters ; must be absolute with leading "
42
42
"\ or / eg /home/rob/pysystemtrade/data/futures/roll_calendars_csv/? "
43
43
)
44
44
build_and_write_roll_calendar (
45
45
instrument_code ,
46
46
roll_parameters = new_roll_parameters ,
47
- output_datapath = output_path_for_roll_calendar ,
47
+ output_datapath = output_path_for_temp_csv_files ,
48
48
)
49
49
50
50
ans = true_if_answer_is_yes (
@@ -57,7 +57,7 @@ def safely_modify_roll_parameters(data: dataBlob):
57
57
58
58
new_multiple_prices = process_multiple_prices_single_instrument (
59
59
instrument_code = instrument_code ,
60
- csv_roll_data_path = output_path_for_roll_calendar ,
60
+ csv_roll_data_path = output_path_for_temp_csv_files ,
61
61
ADD_TO_CSV = False ,
62
62
ADD_TO_ARCTIC = False ,
63
63
)
@@ -110,7 +110,10 @@ def safely_modify_roll_parameters(data: dataBlob):
110
110
# return None
111
111
112
112
## Overwrite roll parameters
113
- data_contracts = dataContracts (data )
113
+ data_csv = dataBlob (
114
+ csv_data_paths = dict (csvFuturesContractData = output_path_for_temp_csv_files )
115
+ )
116
+ data_contracts = dataContracts (data_csv )
114
117
115
118
data_contracts .update_roll_parameters (
116
119
instrument_code = instrument_code ,
0 commit comments