Fixing the build
This commit is contained in:
1 parent
d5c3c64a18
commit
6bd2d9cd90
2 files changed
+5
-5
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user