Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DB Get instrument

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

    DB Get instrument

    I try to use this code to get the instrument (I specifically need to use Instrument.DbGet , not other approaches):

    Code:
    Instrument.DbGet("AAPL", InstrumentType.Stock,Exchange.Default, DateTime.MaxValue, 0.0, OptionRight.Unknown );
    but it returns null. Any way to get i.e. AAPL instrument with DbGet, I specifically mean the last 3 parameters, as those 3 params are needed for futures, and not for stocks, and there is no overload of DbGet for stocks.
    Last edited by ttodua; 09-05-2021, 02:25 PM.

    #2
    Hello ttodua,

    You have discovered something that is not documented in the help guide or supported for use.

    This thread will remain open for any community members that would like to provide any insight with using this unsupported method call.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    154 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    306 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    244 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    345 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    176 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X