• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NINJA DLL is NOT listening

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

    NINJA DLL is NOT listening

    Hello,
    From a Visual C# app through NinjaTrader.Client.dll I have been able to subscribe to the market data and get the last price, but I cannot place orders because the dll is not listening: Connected() returns -1 and a Powershell check returns -1 too:
    PS C:\Users\sodif> Add-Type -path "c:\Program Files (x86)\NinjaTrader 8\bin64\NinjaTrader.Client.dll"
    PS C:\Users\sodif> $atiTest = New-Object NinjaTrader.Client.Client
    PS C:\Users\sodif> $atiTest.Connected(1)
    -1.
    ATI is enabled, port 36973, NT8 is connected to Continuum Demo data feed. How can I make it listen?
    Thanks.

    #2
    Hello Lucero,

    There is not any documentation available for interfacing with the DLL's so this inquiry falls under the "unsupported" territory.

    We will only be able to point you to information that exists on our Forums.

    Here are a few links to some discussion threads that touch on this:


    If you find a post or example of value, please be sure to thank the original poster.

    Please let me know if you have any questions.
    JimNinjaTrader Customer Service

    Comment


      #3
      These threads are helpful, but I still cannot get the API working as it should. For instance, when I try this suggestion
      [System.Runtime.InteropServices.DllImport("C:\\Wind ows\\SysWOW64\\NtDirect.dll")]
      public static extern int Connected(int showMessage);
      , VS throws an error upon calling the Connected() method:
      Failed to initialize COM Library(0x80010106)
      Any suggestions on how this could be fixed?
      Last edited by Lucero; 04-21-2017, 02:56 AM.

      Comment


        #4
        Hello Lucero,

        As assistance with the API is unsupported and beyond the scope of services we provide for our clients, I will take a step back from this thread.

        Hopefully other clients will be able to share their experiences with you and provide some direction.
        JimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by TazoTodua, Today, 09:06 AM
        0 responses
        2 views
        0 likes
        Last Post TazoTodua  
        Started by sambo81, Yesterday, 06:57 PM
        1 response
        18 views
        0 likes
        Last Post NinjaTrader_ThomasC  
        Started by tgn55, Today, 08:34 AM
        0 responses
        4 views
        0 likes
        Last Post tgn55
        by tgn55
         
        Started by TazoTodua, Today, 06:00 AM
        0 responses
        9 views
        0 likes
        Last Post TazoTodua  
        Started by gbux11, Today, 02:36 AM
        0 responses
        8 views
        0 likes
        Last Post gbux11
        by gbux11
         
        Working...
        X