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:	476
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.
    Kate W.NinjaTrader Customer Service

    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.
        Kate W.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by funk10101, Today, 09:43 PM
        0 responses
        6 views
        0 likes
        Last Post funk10101  
        Started by pkefal, 04-11-2024, 07:39 AM
        11 responses
        37 views
        0 likes
        Last Post jeronymite  
        Started by bill2023, Yesterday, 08:51 AM
        8 responses
        44 views
        0 likes
        Last Post bill2023  
        Started by yertle, Today, 08:38 AM
        6 responses
        26 views
        0 likes
        Last Post ryjoga
        by ryjoga
         
        Started by algospoke, Yesterday, 06:40 PM
        2 responses
        24 views
        0 likes
        Last Post algospoke  
        Working...
        X