You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: Convert FutureOptions Between Brokerage and Lean in SymbolMapper (#12)
* fix: Map FOPs in SymbolMapper
feat: cache fops chain response
feat: new api endpoint get fop metadata
feat: update FutureOption entity
feat: convert OptionType <-> OptionRight
test:feat: additional test for futures
test:feat: new TestCases FOPs in SymbolMapper
* revert: fops changes to master
* fix: GenerateFutureOptionBrokerageSymbols
* fix: Convert FOP to Lean Symbol
test:feat: GetBrokerage without spacing, GetLean without spacing
test:fix: create new instance of symbolMapper to reset cache
* fix: regex for brokerage future option
* fix: use .UtcNow in GetUnderlyingFutureFromFutureOption
/// Parses a brokerage-formatted future option symbol string into a <see cref="Symbol"/> object.
288
296
/// </summary>
289
297
/// <param name="brokerageSymbol">
290
-
/// The future option symbol string in brokerage format, expected in the format: <c><something> <ticker> yyMMddP/CStrike</c>.
291
-
/// For example: <c>"TT ZN 250819C126500"</c>.
298
+
/// The future option symbol string in brokerage format, expected in the format: <c><FutureUnderlyingSymbol> <FutureOptionSymbol> yyMMddP/CStrike</c>.
299
+
/// For example: <c>"TT ZN 250819C126500"</c>, without space: <c>"./MNQZ5MNQZ5 251219P11000"</c>
292
300
/// </param>
293
301
/// <returns>
294
302
/// A <see cref="Symbol"/> object representing the parsed future option, including its underlying symbol,
thrownewFormatException($"{nameof(TastytradeBrokerageSymbolMapper)}.{nameof(ParseBrokerageFutureOptionSymbol)}: Input '{brokerageSymbol}' is not in a valid option format (expected 'yyMMddP/CStrike').");
thrownewNotSupportedException($"No market found for future ticker '{futureTicker}' (derived from brokerage future option symbol '{brokerageSymbol}').");
0 commit comments