-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust inference logic for two-digit expirations of futures (and opti…
…ons)
- Loading branch information
1 parent
35feb21
commit f17431b
Showing
3 changed files
with
91 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
**Breaking Changes** | ||
|
||
* Adjusted the logic used by the `SymbolParser.parseInstrumentType` function to infer the expiration year of futures contracts and futures options based solely on a symbol (e.g. ZCZ19). In previous versions, given a two-digit number (e.g. 19), a year in the current century or the next century would be returned (e.g. 2019 or 2119). In this version, a 100-year window is used, interpreting a two-digit number as a year up to 25 years in the future, or alternatively up to 75 years in the past. Assuming the current year is 2022, the 100-year window will range from 1948 to 2047. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters