Files
Gerardo Salazar bd7be31ede Fixes inability to parse negative strike prices in SecurityIdentifier (#4953)
* Fixes inability to parse negative strike prices in SecurityIdentifier

  * Adds new tests ensuring backwards compat and no throwing w/ negative
    strike prices

* Changes strategy used to support negative strike prices

  * We add support for negative strike prices at the cost of
    reducing the maximum allowed precision for the strike price.
    We encode a negative sign into the 20th bit of the strike price
    and set our bounds for precision to a max (exclusive) of 475712.
    This in turn is then used to form a negative strike when rebuilding
    the SID.

  * Adds tests covering changes

* Address review: adds additional tests and refactors code

* Address self-review: remove unused import in SymbolTests

* Address review: adds additional test cases for OptionStyle and OptionRight

  * These tests are to ensure that backwards compatibility is maintained

* Addresses review: Adds option chain <-> master SID hash test

  * Refactors previous tests to reduce on code duplication

* Reduce test duplication

Co-authored-by: Martin Molinero <martin.molinero1@gmail.com>
2020-11-30 15:45:36 -03:00
..
2020-07-31 17:53:56 +03:00
2016-05-26 11:27:28 +01:00
2019-10-19 09:15:59 -03:00
2020-09-09 16:18:10 -03:00
2020-09-09 16:18:10 -03:00
2017-07-06 21:11:46 +01:00
2017-07-02 20:03:02 +01:00
2017-09-08 12:18:12 +01:00
2017-08-29 15:27:15 -03:00
2017-05-02 10:42:01 -03:00
2015-01-12 12:03:33 -03:00
2016-02-04 12:57:18 -05:00
2016-02-19 03:01:39 +01:00
2017-09-01 14:40:26 -03:00
2016-02-12 10:56:54 -05:00
2016-02-08 11:10:38 -05:00
2016-03-20 11:31:38 +01:00
2016-02-04 17:18:13 -05:00