16 using System.Runtime.CompilerServices;
27 public static partial class Messages
37 [MethodImpl(MethodImplOptions.AggressiveInlining)]
40 return $
"VolumeShareSlippageModel.GetSlippageApproximation(): Cannot use this model with market data type {data.GetType()}";
46 [MethodImpl(MethodImplOptions.AggressiveInlining)]
49 return Invariant($
"VolumeShareSlippageModel.GetSlippageApproximation(): {securityType} security type often ") +
50 "does not report volume. If you intend to model slippage beyond the spread, please consider another model.";
56 [MethodImpl(MethodImplOptions.AggressiveInlining)]
59 return Invariant($
@"VolumeShareSlippageModel.GetSlippageApproximation: Bar volume cannot be zero or negative. Volume: {
60 barVolume}. Using maximum slippage percentage of {slippagePercent}");