The expiration day of EUR (6E) Futures contract for June is 16.
Actual Behavior
Lean is calculating Jun 19th, 2023:
2023-04-04 09:54:51 [--SECURITIES--] Adding 6E Y9FBS83UF3EP (6E19M23) | 6/19/2023 expiry
2023-04-04 13:20:13 Runtime Error: No security definition has been found for the request. Origin: [Id=2] IBPlaceOrder: 6E19M23 (FUT EUR USD CME 20230619 0 )
2023-04-04 13:20:13 Runtime Error: No security definition has been found for the request. Origin: [Id=2] IBPlaceOrder: 6E19M23 (FUT EUR USD CME 20230619 0 ): StackTrace: System.Exception: No security definition has been found for the request. Origin: [Id=2] IBPlaceOrder: 6E19M23 (FUT EUR USD CME 20230619 0 )
Since the market is closed on Jun 19th, 2023 (Juneteenth), the contract expires on Friday Jun 16th, 2023.
Potential Solution
Add Juneteenth to MHDB holidays for Futures.
Checklist
[x] I have completely filled out this template
[x] I have confirmed that this issue exists on the current master branch
[x] I have confirmed that this is not a duplicate issue by searching issues
[x] I have provided detailed steps to reproduce the issue
Expected Behavior
The expiration day of EUR (6E) Futures contract for June is 16.
Actual Behavior
Lean is calculating Jun 19th, 2023:
Since the market is closed on Jun 19th, 2023 (Juneteenth), the contract expires on Friday Jun 16th, 2023.
Potential Solution
Add Juneteenth to MHDB holidays for Futures.
Checklist
master
branch