Skip to content

Error Parsing BRK.B 260206C00495000 #9341

@AlexCatarino

Description

@AlexCatarino

Expected Behavior

Symbol.ParseOptionTickerOSI parses BRK.B 260206C00495000

Actual Behavior

The following exception has occurred: Invalid ticker format BRK.B 260206C00495000`

Potential Solution

Add ./ to @"^([A-Z0-9]+)\s*(\d{6})([CP])(\d{8})$" -> @"^([A-Z0-9\.]+)\s*(\d{6})([CP])(\d{8})$"

Reproducing the Problem

Add [TestCase("BRK.B 260206C00495000", SecurityType.Option, OptionStyle.American, "BRK.B", "BRK.B", "BRK.B", 495.00, "2026-02-06")] to SymbolRepresentationTests.ParseOptionTickerOSI

Checklist

  • I have completely filled out this template
  • I have confirmed that this issue exists on the current master branch
  • I have confirmed that this is not a duplicate issue by searching issues
  • I have provided detailed steps to reproduce the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions