Skip to content

10-Year T-Note Futures Expiration Bug #8973

@AlexCatarino

Description

@AlexCatarino

Expected Behavior

Correct expiration date.
ZNZ5 is ZN21Z25
https://www.cmegroup.com/markets/interest-rates/us-treasury/10-year-us-treasury-note.calendar.html

Actual Behavior

ZNZ5 is ZN22Z25

In live mode with IB:

Live Handled Error: Brokerage Warning: No security definition has been found for the request. Origin: [Id=11] GetContractDetails: ZN22Z25 (FUT ZN USD
�Вот)

Potential Solution

Review date definition/holidays.

Reproducing the Problem

qb = QuantBook()
f = qb.add_future('ZN')
qb.future_chain(f.symbol, flatten=True).data_frame
Image

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

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions