File tree 1 file changed +2
-5
lines changed
sysproduction/reporting/data
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 4
4
import pandas as pd
5
5
6
6
from syscore .exceptions import missingContract , missingData
7
- from syscore .constants import missing_data , arg_not_supplied
7
+ from syscore .constants import arg_not_supplied
8
8
from sysobjects .contracts import futuresContract
9
9
from sysobjects .production .tradeable_object import instrumentStrategy
10
10
@@ -319,9 +319,6 @@ def get_df_of_perc_pandl_series_for_instrument_all_strategies_across_contracts_i
319
319
data , instrument_code , start_date , end_date
320
320
)
321
321
322
- if contract_list is missing_data :
323
- raise missingContract
324
-
325
322
pandl_df = pd .concat (pandl_list , axis = 1 )
326
323
pandl_df .columns = contract_list
327
324
@@ -335,7 +332,7 @@ def get_list_of_perc_pandl_series_for_instrument_all_strategies_across_contracts
335
332
data , instrument_code , start_date , end_date
336
333
)
337
334
if len (contract_list ) == 0 :
338
- return missing_data , missing_data
335
+ raise missingContract
339
336
340
337
pandl_list = [
341
338
get_perc_pandl_series_for_contract (data , instrument_code , contract_id )
You can’t perform that action at this time.
0 commit comments