refactor: Fix typo 'uitilities' -> 'utilities'
This commit is contained in:
1 parent
1deeb85d22
commit
ccec77f7d1
3 files changed
+6
-6
No files matched your search
@@ -507,7 +507,7 @@ namespace bts.shell.pnl {
|
||||
|
||||
static class PNLDataExtensions {
|
||||
public static string pnl_symbol(this SecurityImmutable security) {
|
||||
return bts.api.ExchangeSpecificUitlities.get_pnl_symbol(security);
|
||||
return bts.api.ExchangeSpecificUtilities.get_pnl_symbol(security);
|
||||
}
|
||||
|
||||
// while override_cpp could use double.NaN to indicate the lack of an override,
|
||||
@@ -519,7 +519,7 @@ namespace bts.shell.pnl {
|
||||
|
||||
public static (double default_cpp, double? override_cpp) pnl_cpp_tuple(this PNLUnitImmutable pnl_unit, SecurityImmutable security) {
|
||||
// TODO: actual impl
|
||||
double calced_pnl = bts.api.ExchangeSpecificUitlities.get_cpp(pnl_unit, security);
|
||||
double calced_pnl = bts.api.ExchangeSpecificUtilities.get_cpp(pnl_unit, security);
|
||||
return (calced_pnl, pnl_unit.HasCppOverride ? pnl_unit.CppOverride.Value : (double?)null);
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -10,7 +10,7 @@ using System.Collections.Immutable;
|
||||
|
||||
namespace bts.api {
|
||||
|
||||
static class ExchangeSpecificUitlities{
|
||||
static class ExchangeSpecificUtilities{
|
||||
private static string _default_hub = "Henry";
|
||||
static class ICE{
|
||||
|
||||
@@ -125,4 +125,4 @@ static class ExchangeSpecificUitlities{
|
||||
return security?.ToString();
|
||||
}
|
||||
|
||||
}}
|
||||
}}
|
||||
@@ -51,7 +51,7 @@
|
||||
switch (security.ContractCase) {
|
||||
case Security.ContractOneofCase.Future:
|
||||
if (exchange_specific_formatting && security.HasIce) {
|
||||
return ExchangeSpecificUitlities.format_security(security);
|
||||
return ExchangeSpecificUtilities.format_security(security);
|
||||
}
|
||||
return format_future(security.Symbol, security.security_desc(), security.Future);
|
||||
case Security.ContractOneofCase.Option:
|
||||
@@ -63,7 +63,7 @@
|
||||
// GlbxSecurityFormatter.FormatSpread(security, out string result)
|
||||
return security.Glbx.SecurityDesc;
|
||||
} else if (security.HasIce) {
|
||||
return ExchangeSpecificUitlities.format_security(security);
|
||||
return ExchangeSpecificUtilities.format_security(security);
|
||||
} else if (security.HasDeribit) {
|
||||
return security.Deribit.SecurityDesc;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user