Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ninjatrader API

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

    #16
    Hello rmt81,

    That is correct, the Subscribe / Unsubscribe functions available from the NTDirect.dll cause NinjaTrader to internally start a subscription the way a Chart or SuperDOM would.

    From the help guide:
    int SubscribeMarketData(string instrument)
    Starts a market data stream for the specific instrument. Call the MarketData() function to retrieve prices. Make sure you call the UnSubscribeMarketData() function to close the data stream. A return value of 0 indicates success and -1 indicates an error.

    int UnsubscribeMarketData(string instrument)
    Stops a market data stream for the specific instrument. A return value of 0 indicates success and -1 indicates an error.

    double MarketData(string instrument, int type)
    Gets the most recent price for the specified instrument and data type. 0 = last, 1 = bid, 2 = ask. You must first call the SubscribeMarketData() function prior to calling this function.

    http://ninjatrader.com/support/helpG.../functions.htm


    jmagaia,

    While IB may have recently changed their API, this change will not be reflected in NinjaTrader 8's connection adapter.

    I would not be able to assist with creating an application that directly connects to IB's API, and you will not be able to alter the connection adapter of NinjaTrader on your end.

    If you would like, we can submit a feature request for development to allow for historical data for instruments without a real-time subscription in IB to be downloaded with TWS 955+.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    64 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    94 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    51 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    108 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    63 views
    0 likes
    Last Post PaulMohn  
    Working...
    X