16 using System.Runtime.CompilerServices;
27 public static partial class Messages
34 [MethodImpl(MethodImplOptions.AggressiveInlining)]
35 public static string UnsupportedSecurityType(Securities.Security security)
37 return Invariant($
"Unsupported security type: {security.Type}");
46 [MethodImpl(MethodImplOptions.AggressiveInlining)]
47 public static string UnexpectedEquityMarket(
string market)
49 return Invariant($
"AlphaStreamsFeeModel(): unexpected equity Market {market}");
58 [MethodImpl(MethodImplOptions.AggressiveInlining)]
59 public static string UnsupportedExchange(Orders.Order order)
61 return Invariant($
"Unsupported exchange: ${order.Symbol.ID.Market}");
70 [MethodImpl(MethodImplOptions.AggressiveInlining)]
71 public static string UnexpectedOptionMarket(
string market)
73 return Invariant($
"InteractiveBrokersFeeModel(): unexpected option Market {market}");
76 [MethodImpl(MethodImplOptions.AggressiveInlining)]
77 public static string UnexpectedFutureMarket(
string market)
79 return Invariant($
"InteractiveBrokersFeeModel(): unexpected future Market {market}");
82 [MethodImpl(MethodImplOptions.AggressiveInlining)]
83 public static string UnexpectedEquityMarket(
string market)
85 return Invariant($
"InteractiveBrokersFeeModel(): unexpected equity Market {market}");
88 [MethodImpl(MethodImplOptions.AggressiveInlining)]
89 public static string UnitedStatesFutureFeesUnsupportedSecurityType(Securities.Security security)
91 return Invariant($
"InteractiveBrokersFeeModel.UnitedStatesFutureFees(): Unsupported security type: {security.Type}");
94 [MethodImpl(MethodImplOptions.AggressiveInlining)]
95 public static string HongKongFutureFeesUnexpectedQuoteCurrency(Securities.Security security)
97 return Invariant($
"Unexpected quote currency {security.QuoteCurrency.Symbol} for Hong Kong futures exchange");
106 [MethodImpl(MethodImplOptions.AggressiveInlining)]
107 public static string UnsupportedSecurityType(
SecurityType securityType)
109 return $
"TDAmeritradeFeeModel doesn't return correct fee model for SecurityType = {nameof(securityType)}";