Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Connecting NT with NinjaTrader API and IB connection

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

    Connecting NT with NinjaTrader API and IB connection

    Hi there!

    please I'm doing some tests to the API of AT Interface while connected to IB and I don't get any quotes (Bid, Ask, Last) with MarketData function, but if I try with the simulated data feed connection then all works well and I get the quotes.

    Do you know which can be the problem regarding the IB connection?

    Thanks in advance

    #2
    Hello JoanNT,

    Are you enabled for this data through IB? What happens when you select this instrument in the control center? Are bid / ask / last available there?
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      When I select the instrument "ES 03-11" in control center I can see the bid, ask and last quotes.

      Comment


        #4
        Did you first use SubscribeMarketData(string instrument) ?

        What is the result of calling this?

        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.

        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Hi Ryan,

          Did you first use SubscribeMarketData(string instrument) ?

          Yes, with "ES 03-11" as instrument

          What is the result of calling this?

          the result is zero, in both connections, then the result is right

          After this I use the MarketData() function to retrieve prices. This works on the simulated data feed connection but not for IB connection, this is my problem, do you know any issue to fix this?

          thanks again

          Comment


            #6
            I dont know if this could be important to solve this issue I have:

            I've added the reference DLL from C:\Program files\NinjaTrader 7\bin\NinjaTrader.Client.dll
            I was trying to reference the NTDirect.dll located in the C:\WINDOWS\system32 folder but I got an error from Visual Studio 2010...

            and this works fine with simulated data feed connection but not for IB, is this helpful?

            Thanks againg

            Comment


              #7
              I'm not sure why it's not working for you. I'd be happy to take a look my end to compare. You can share here or send to [email protected]. Would need everything required to run your custom app as well.
              Ryan M.NinjaTrader Customer Service

              Comment


                #8
                I've just sent an email.

                Thanks

                Comment


                  #9
                  Thanks - we'll look for it and get back to you.
                  BertrandNinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by hurleydood, 09-12-2019, 10:45 AM
                  14 responses
                  1,096 views
                  0 likes
                  Last Post Board game geek  
                  Started by cre8able, Yesterday, 04:16 PM
                  1 response
                  16 views
                  0 likes
                  Last Post NinjaTrader_Gaby  
                  Started by cre8able, Yesterday, 04:22 PM
                  1 response
                  14 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by stafe, 04-15-2024, 08:34 PM
                  5 responses
                  28 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by StrongLikeBull, Yesterday, 04:05 PM
                  1 response
                  12 views
                  0 likes
                  Last Post NinjaTrader_Gaby  
                  Working...
                  X