Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

GetNextRolloverDate isn't working properly for CL 09-20

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    GetNextRolloverDate isn't working properly for CL 09-20

    Seems that I found a bug but it only happens for one instrument and it first happened today...

    Code:
    Instrument tmpInstrument = Instrument.GetInstrument("CL 09-20");
    
    DateTime rolloverDate = tmpInstrument.MasterInstrument.GetNextRolloverDate(new DateTime(2020, 9, 1));
    Returns 9/17/2020 12:00:00 AM << seems logical but possibly wrong

    Run the same code for {CL 10-20 Nymex} and it returns the same thing, 9/17/2020 12:00:00 AM. << makes no sense


    I also tried adding CL 09-20 to the Market Analyzer, which failed. And I strangely got it in a state where I couldn't add CL 10-20 to the list because NT said it was already there but it wasn't displayed.

    Yes, I updated my database and latest roll-overs.

    Click image for larger version  Name:	2020-09-07_21-23-15.jpg Views:	0 Size:	13.4 KB ID:	1117219

    See that CL 10-20 shows only 9 days remaining in the Market Analyzer.

    PS I'm using CQG.

    #2
    Hello ntdev,

    Thank you for your reply.

    GetNextRolloverDate() would not be documented, so would not be officially supported, however, my understanding is that this returns the next rollover date for that particular instrument, not the rollover date for the particular contract.

    Please let us know if we may be of further assistance to you.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    83 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    47 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    29 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    66 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X