Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for splitting contract specs and security IDs with hyphen ("-") in the contract code #2612

Merged
merged 4 commits into from
Nov 14, 2023

Conversation

Mistuus
Copy link
Contributor

@Mistuus Mistuus commented Nov 13, 2023

Example: F-XNSE-BAJAJ-AUTO

Comment on lines +47 to +51
private static final Pattern SECURITY_ID_PATTERN = Pattern.compile(Messages.format(
"^(?<{}>.*){}(?<{}>.*)$",
CONTRACT_DETAILS_REGEX_GROUP_NAME,
GROUPS_SEPARATOR,
EXPIRY_AND_OPTION_DETAILS_GROUP_NAME));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried making this as readable as possible so any other suggestions are more than welcome

@Mistuus Mistuus added auto-merge Merge when build finishes and removed auto-merge Merge when build finishes labels Nov 13, 2023
@Mistuus Mistuus requested a review from jodastephen November 13, 2023 14:54
@Mistuus Mistuus added the auto-merge Merge when build finishes label Nov 14, 2023
@mergify mergify bot merged commit eb05ddc into main Nov 14, 2023
5 checks passed
@delete-merged-branch delete-merged-branch bot deleted the split-complex-etd-id branch November 14, 2023 07:40
sagiruthvik pushed a commit to SolumXplain/solum-xplain-opengamma-strata that referenced this pull request Nov 13, 2024
… ("-") in the contract code (OpenGamma#2612)

* Add support for splitting contract spec ID when contract code has hyphen

* Add support for splitting contract codes with hyphen in the name

* Update javadoc comment

* Add XNSE as exchange and test for option with hyphen

---------

Co-authored-by: Victor Patentasu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge Merge when build finishes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants