Unplugging the logic for a bunch of TC2 data (position, rolover vol, presaved values etc)
This commit is contained in:
1 parent
cb10a5e99e
commit
de2eb433b6
1 file changed
+9
-6
@@ -99,8 +99,7 @@ namespace BCG {
|
||||
NMSheetDataRequest data_request = _threaded_bb.read_state(_in_bb_main_sheet_request_tag) ?? new NMSheetDataRequest(new List<Triplet<NMSheetExpiration, bool, double>>());
|
||||
data_request = NMSheetDataRequest.restrict_for_symbol(data_request, _nmsheet_symbol);
|
||||
OptionDriverPriceMap live_driver_map = _threaded_bb.read_state(_in_bb_live_driver_bbo_tag);
|
||||
IDictionary<NMSheetSymbol, ExpStrikeKeyedData<mbts.analytics.Theos>> sym_presaved_aw2_theos = _threaded_bb.sec_thread_retrieve_from_cache(_in_bb_presaved_aw2_theos_tag) as IDictionary<NMSheetSymbol, ExpStrikeKeyedData<mbts.analytics.Theos>>;
|
||||
ExpStrikeKeyedData<mbts.analytics.Theos> presaved_aw2_theos = (sym_presaved_aw2_theos != null && sym_presaved_aw2_theos.TryGetValue(_nmsheet_symbol, out presaved_aw2_theos)) ? presaved_aw2_theos : null;
|
||||
ExpStrikeKeyedData<mbts.analytics.Theos> presaved_aw2_theos = null;
|
||||
NMSheetSettings sheet_settings = _threaded_bb.read_state(_in_bb_sheet_settings_tag) ?? new NMSheetSettings();
|
||||
ExpStrikeKeyedData<mbts.spark.TheoPoint> shared_live_theo_data_map = _threaded_bb.read_state(_in_bb_live_theos_tag);
|
||||
|
||||
@@ -116,12 +115,12 @@ namespace BCG {
|
||||
data_request,
|
||||
output_theo_key_data_map,
|
||||
option_exp_driver_data_map,
|
||||
(OptionContractKeyedData<double>)_threaded_bb.sec_thread_retrieve_from_cache(_in_bb_symbol_theo_shift_tag) ?? new OptionContractKeyedData<double>(),
|
||||
new OptionContractKeyedData<double>(),
|
||||
_get_atm_data(output_theo_data_map),
|
||||
_get_rollover_data(),
|
||||
_get_position_map(),
|
||||
presaved_aw2_theos,
|
||||
_threaded_bb.sec_thread_retrieve_from_cache(_in_bb_option_driver_detailed_price_tag)/* as IDictionary<DateTime, IBlueRow> ?? new Dictionary<DateTime, IBlueRow>()*/,
|
||||
null,
|
||||
_threaded_bb.read_state(_in_bb_secmap_tag),
|
||||
sheet_settings);
|
||||
timer.stop();
|
||||
@@ -221,9 +220,13 @@ namespace BCG {
|
||||
return atm_data;
|
||||
}
|
||||
|
||||
private OptionContractKeyedData<PNLRollOverDataUnit> _get_rollover_data() { return (OptionContractKeyedData<PNLRollOverDataUnit>)_threaded_bb.sec_thread_retrieve_from_cache(_in_bb_rollover_data_tag); }
|
||||
private OptionContractKeyedData<PNLRollOverDataUnit> _get_rollover_data() {
|
||||
return new OptionContractKeyedData<PNLRollOverDataUnit>();
|
||||
}
|
||||
|
||||
private ExpStrikeKeyedData<Tuple<double, double>> _get_position_map() { return (ExpStrikeKeyedData<Tuple<double, double>>)_threaded_bb.sec_thread_retrieve_from_cache(_in_bb_position_tag); }
|
||||
private ExpStrikeKeyedData<Tuple<double, double>> _get_position_map() {
|
||||
return new ExpStrikeKeyedData<Tuple<double, double>>();
|
||||
}
|
||||
|
||||
private double _get_onefive() {
|
||||
// object dp_obj = _threaded_bb.sec_thread_retrieve_from_cache(_in_bb_onefive_value_tag);
|
||||
|
||||
Reference in new issue
Block a user