Fixing the build

This commit is contained in:
Taha Afzal committed 2022-02-21 11:24:59 -05:00
1 parent d5c3c64a18
commit 6bd2d9cd90
2 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -16,13 +16,13 @@
public static IEnumerable<int> vss(this VolSurfaceUsageListImmutable list) =>
new HashSet<int>(list.UsageList.Select(e => e.VsId));
public static int? get_vs_id(this VolSurfaceUsageListImmutable list, SecurityTuple security_tuple) =>
public static int? get_vs_id(this VolSurfaceUsageListImmutable list, mbts.SecurityTuple security_tuple) =>
list.UsageList.TryGetFirst(e => e.SymbolName == security_tuple.security_name &&
e.SymbolVenue == security_tuple.security_exchange, out var res) ?
res.VsId : null;
public static int? get_vs_id(this VolSurfaceUsageListImmutable list, string option_name) =>
get_vs_id(list, new SecurityTuple(SecurityType.Option, option_name, Venue.Unset));
get_vs_id(list, new mbts.SecurityTuple(SecurityType.Option, option_name, Venue.Unset));
public static bool symbol_driven_by_vs(this VolSurfaceUsageListImmutable list, string option_name, int vs_id) =>
list.UsageList.Any(u => u.SymbolName == option_name && u.VsId == vs_id);
+3 -3
View File
@@ -43,7 +43,7 @@ namespace BCG {
string risk_terms_name,
SecurityType risk_terms_type,
string option_equivalence_name,
SecurityTuple[] securities,
mbts.SecurityTuple[] securities,
IEnumerable<VolSurfaceGreeks> ordered_greeks,
int volsurface_id,
IEnumerable<double> handles,
@@ -110,7 +110,7 @@ namespace BCG {
string option_equivalence_name = null,
IEnumerable<VolSurfaceGreeks> ordered_greeks = null,
int volsurface_id = -1,
SecurityTuple[] securities = null,
mbts.SecurityTuple[] securities = null,
IEnumerable<double> handles = null,
bool slide_handles_in_percentage = false,
ReportCalculationMode calculation_mode = ReportCalculationMode.UserPrompted) {
@@ -152,7 +152,7 @@ namespace BCG {
public readonly ReportType type;
public readonly string name, internal_account, risk_terms_name, option_equivalence_name;
public readonly SecurityType risk_terms_type;
public readonly SecurityTuple[] securities;
public readonly mbts.SecurityTuple[] securities;
public readonly double[] handles, strike_buckets;
public readonly StrikeGrouping strike_grouping;
public readonly mbts.analytics.VolSurfaceGreeks[] ordered_greeks;