16 using System.Runtime.CompilerServices;
27 public static partial class Messages
37 [MethodImpl(MethodImplOptions.AggressiveInlining)]
40 return Invariant($
"Unsupported security type: {security.Type}");
52 [MethodImpl(MethodImplOptions.AggressiveInlining)]
55 return Invariant($
"AlphaStreamsFeeModel(): unexpected equity Market {market}");
67 [MethodImpl(MethodImplOptions.AggressiveInlining)]
70 return Invariant($
"Unsupported exchange: ${order.Symbol.ID.Market}");
82 [MethodImpl(MethodImplOptions.AggressiveInlining)]
85 return Invariant($
"InteractiveBrokersFeeModel(): unexpected option Market {market}");
91 [MethodImpl(MethodImplOptions.AggressiveInlining)]
94 return Invariant($
"InteractiveBrokersFeeModel(): unexpected future Market {market}");
100 [MethodImpl(MethodImplOptions.AggressiveInlining)]
103 return Invariant($
"InteractiveBrokersFeeModel(): unexpected equity Market {market}");
109 [MethodImpl(MethodImplOptions.AggressiveInlining)]
112 return Invariant($
"InteractiveBrokersFeeModel.UnitedStatesFutureFees(): Unsupported security type: {security.Type}");
118 [MethodImpl(MethodImplOptions.AggressiveInlining)]
121 return Invariant($
"InteractiveBrokersFeeModel.EUREXFutureFees(): Unsupported security type: {security.Type}");
128 [MethodImpl(MethodImplOptions.AggressiveInlining)]
131 return Invariant($
"Unexpected quote currency {security.QuoteCurrency.Symbol} for Hong Kong futures exchange");
143 [MethodImpl(MethodImplOptions.AggressiveInlining)]
146 return $
"TDAmeritradeFeeModel doesn't return correct fee model for SecurityType = {nameof(securityType)}";