Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 ScottWalsh, Today, 04:29 PM
        0 responses
        4 views
        0 likes
        Last Post ScottWalsh  
        Started by rtwave, 04-12-2024, 09:30 AM
        2 responses
        21 views
        0 likes
        Last Post rtwave
        by rtwave
         
        Started by tsantospinto, 04-12-2024, 07:04 PM
        5 responses
        69 views
        0 likes
        Last Post tsantospinto  
        Started by cre8able, Today, 03:20 PM
        0 responses
        7 views
        0 likes
        Last Post cre8able  
        Started by Fran888, 02-16-2024, 10:48 AM
        3 responses
        49 views
        0 likes
        Last Post Sam2515
        by Sam2515
         
        Working...
        X