Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MarketData() function returns wrong value in python

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

    MarketData() function returns wrong value in python

    Hi folks,

    I am trying to build an external application in python to call MarketData() function residing in NtDirect.dll file.

    However, I am unable to fetch the actual value which is displaying in Ninja Trader application.

    Please refer below attached screenshot of my code and output.

    Please let me know if I am missing anything to configure or any other dll to load into application.

    Thank you

    Regards,

    HarshClick image for larger version

Name:	NT_wrong_value_python.png
Views:	568
Size:	149.7 KB
ID:	1158582
    Attached Files

    #2
    Hello harshjani2094,

    Thank you for your post.

    While this is outside of the range of what our support could assist with, I will leave this thread open in case one of our users would like to chime in with assistance.

    Please let us know if we may be of further assistance to you.

    Comment


      #3
      Hi Kate,

      Can you please provide mandatory things to be done before calling MarketData() function (either at Ninja Trader Application or any functions to be called).

      i.e.
      1. any other dll file dependency to be loaded
      2. any function to be called (excepting SubscriberMarketData())
      3. configuration in Ninja Trader application

      Thanks

      Harsh
      Last edited by harshjani2094; 06-02-2021, 10:14 AM.

      Comment


        #4
        Hello Harshjani2094,

        Thank you for your reply.

        As far as getting information from NinjaTrader, you would just need to call the functions from the NTDirect.dll.

        Calling any function should create a connection to the server. You can check the connection status by calling

        The AT interface must be turned on and configured in the NinjaTrader options:



        Outside of this, we wouldn't be able to assist with external code.

        Please let us know if we may be of further assistance to you.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        111 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        59 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        38 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        41 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        78 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X