Skip to content

Fix OSI option ticker parsing for symbols containing dots (e.g. BRK.B)#9343

Open
AlexCatarino wants to merge 2 commits intoQuantConnect:masterfrom
AlexCatarino:bug-9341-parse-option-ticker-osi-brk-b
Open

Fix OSI option ticker parsing for symbols containing dots (e.g. BRK.B)#9343
AlexCatarino wants to merge 2 commits intoQuantConnect:masterfrom
AlexCatarino:bug-9341-parse-option-ticker-osi-brk-b

Conversation

@AlexCatarino
Copy link
Member

@AlexCatarino AlexCatarino commented Mar 17, 2026

Summary

  • Fixes Error Parsing BRK.B 260206C00495000 #9341: Symbol.ParseOptionTickerOSI throws Invalid ticker format for tickers with dots (e.g. BRK.B 260206C00495000)
  • Extends _optionTickerRegex from [A-Z0-9]+ to [A-Z0-9\.]+ to accept dots in the underlying ticker
  • Adds the failing test case from the issue

Test plan

  • ParseOptionTickerOSI("BRK.B 260206C00495000", ...) now parses correctly
  • All existing ParseOptionTickerOSI test cases continue to pass

AlexCatarino and others added 2 commits March 17, 2026 23:21
Adds test case to ParseOptionTickerOSI to reproduce issue QuantConnect#9341 where
Symbol.ParseOptionTickerOSI throws on tickers containing a dot (e.g. BRK.B).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Extends _optionTickerRegex from [A-Z0-9]+ to [A-Z0-9\.]+ so that
symbols like BRK.B are accepted by ParseOptionTickerOSI.

Fixes QuantConnect#9341

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error Parsing BRK.B 260206C00495000

1 participant